Class: Fabulator::Expr::DataSet

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

Instance Method Summary collapse

Constructor Details

#initialize(p, v) ⇒ DataSet

Returns a new instance of DataSet.



115
116
117
118
# File 'lib/fabulator/expr/statement_list.rb', line 115

def initialize(p,v)
  @path = p
  @value = v
end

Instance Method Details

#run(context, autovivify = false) ⇒ Object



120
121
122
123
# File 'lib/fabulator/expr/statement_list.rb', line 120

def run(context, autovivify = false)
  context.set_value(@path, @value)
  [ context.root ]
end