Class: Fabulator::Expr::DataSet
- Inherits:
-
Object
- Object
- Fabulator::Expr::DataSet
- Defined in:
- lib/fabulator/expr/statement_list.rb
Instance Method Summary collapse
-
#initialize(p, v) ⇒ DataSet
constructor
A new instance of DataSet.
- #run(context, autovivify = false) ⇒ Object
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 |