Class: Heist::Scheme::Complex

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/heist/parser/nodes.rb

Instance Method Summary collapse

Instance Method Details

#evalObject



102
103
104
# File 'lib/heist/parser/nodes.rb', line 102

def eval
  @value ||= Complex(real.eval, imaginary.eval)
end