Класс парсера вещественных чисел.
# File lib/cls-ruby/basic_scalars.rb, line 196 def format( what ) what.to_s end
# File lib/cls-ruby/basic_scalars.rb, line 186 def on_tok_nonspace( token ) case token when /^([+-]?[[:digit:]]*[\.]?[[:digit:]]*([Ee][+-]?[[:digit:]]+)?)$/ token.to_f else raise InvalidValueEx.new( "value '#{token}' is not a floating point number" ) end end
Generated with the Darkfish Rdoc Generator 2.