Class: Plasma::Interpreter::RegexNode

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



348
349
350
# File 'lib/plasma/interpreter/plasma_grammarnode.rb', line 348

def evaluate(env)
  Regexp.new(body.text_value)
end