Class: Eqn::Comparation

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/eqn/comparation.rb

Defined Under Namespace

Classes: CompGroup

Instance Method Summary collapse

Instance Method Details

#valueObject



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