Module: NumericLiteral

Defined in:
lib/sql_munger/nodes.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



266
267
268
269
270
271
272
# File 'lib/sql_munger/nodes.rb', line 266

def value
  if /[\.e]/ =~ text_value
    text_value.to_f
  else
    text_value.to_i
  end
end