Class: ERLE::Float

Inherits:
Number show all
Defined in:
lib/erle/elements/numbers.rb

Instance Attribute Summary

Attributes inherited from Term

#input, #output

Instance Method Summary collapse

Methods inherited from Term

enclosure, #initialize, parse, pattern, to_ruby, until_any_closing

Constructor Details

This class inherits a constructor from ERLE::Term

Instance Method Details

#to_rubyObject



10
11
12
# File 'lib/erle/elements/numbers.rb', line 10

def to_ruby
  @output ||= @input.to_f
end