Class: Fabulator::Expr::CurrentContext

Inherits:
Object
  • Object
show all
Defined in:
lib/fabulator/expr/node.rb

Instance Method Summary collapse

Constructor Details

#initializeCurrentContext

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