class Unparser::Emitter::Float

Emiter for float literals

Constants

INFINITY
NEG_INFINITY

Private Instance Methods

dispatch() click to toggle source
# File lib/unparser/emitter/float.rb, line 16
def dispatch
  case value
  when INFINITY
    write('10e1000000000000000000')
  when NEG_INFINITY
    write('-10e1000000000000000000')
  else
    write(value.inspect)
  end
end