Class: Fabulator::Expr::CurrentContext
- Inherits:
-
Object
- Object
- Fabulator::Expr::CurrentContext
- Defined in:
- lib/fabulator/expr/node.rb
Instance Method Summary collapse
- #create_node(context) ⇒ Object
-
#initialize ⇒ CurrentContext
constructor
A new instance of CurrentContext.
- #run(context, autovivify = false) ⇒ Object
Constructor Details
#initialize ⇒ CurrentContext
Returns a new instance of CurrentContext.
134 135 |
# File 'lib/fabulator/expr/node.rb', line 134 def initialize end |
Instance Method Details
#create_node(context) ⇒ Object
141 142 143 |
# File 'lib/fabulator/expr/node.rb', line 141 def create_node(context) context.root end |
#run(context, autovivify = false) ⇒ Object
137 138 139 |
# File 'lib/fabulator/expr/node.rb', line 137 def run(context, autovivify = false) context.nil? ? [] : [ context.root ] end |