Class: Pione::Lang::ActionContext
- Inherits:
-
LiteralContext
- Object
- StructX
- Context
- LiteralContext
- Pione::Lang::ActionContext
- Defined in:
- lib/pione/lang/context.rb
Instance Method Summary collapse
-
#eval(env) ⇒ Object
Evaluate the action context.
Methods included from Util::Positionable
#line_and_column, #pos, #set_source_position
Methods inherited from Context
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 |