Class: Eqn::Comparation
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Eqn::Comparation
- Defined in:
- lib/eqn/comparation.rb
Defined Under Namespace
Classes: CompGroup
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/eqn/comparation.rb', line 3 def value val_one = elements.shift.value if elements.empty? val_one else val_one.send(*elements.shift.value) end end |