Class: Plasma::Interpreter::DefNode

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

Instance Method Summary collapse

Methods inherited from PlasmaNode

#empty?

Instance Method Details

#evaluate(env) ⇒ Object



254
255
256
257
258
# File 'lib/plasma/interpreter/plasma_grammarnode.rb', line 254

def evaluate(env)
  value = plasma.evaluate(env)
  env.bind!(sym.text_value.to_sym, value)
  ''
end