Class: Plasma::Interpreter::DeclNode

Inherits:
ColNode show all
Defined in:
lib/plasma/interpreter/plasma_grammarnode.rb

Instance Method Summary collapse

Methods inherited from ColNode

#col

Methods inherited from PlasmaNode

#empty?

Instance Method Details

#evaluate(env) ⇒ Object



226
227
228
229
230
# File 'lib/plasma/interpreter/plasma_grammarnode.rb', line 226

def evaluate(env)
  col.inject(nil) do |value, statement|
    statement.evaluate(env)
  end
end