Class: Pione::Lang::ActionContext

Inherits:
LiteralContext show all
Defined in:
lib/pione/lang/context.rb

Instance Method Summary collapse

Methods included from Util::Positionable

#line_and_column, #pos, #set_source_position

Methods inherited from Context

#eval!

Instance Method Details

#eval(env) ⇒ Object

Evaluate the action context. Return a new action content.



240
241
242
243
244
# File 'lib/pione/lang/context.rb', line 240

def eval(env)
  ActionContent.new.tap do |definition|
    env.temp(current_definition: definition) {|_env| super(_env)}
  end
end