Class: Fabulator::Expr::List
- Inherits:
-
Object
- Object
- Fabulator::Expr::List
- Defined in:
- lib/fabulator/expr/function.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ List
constructor
A new instance of List.
- #run(context, autovivify = false) ⇒ Object
Constructor Details
#initialize(args) ⇒ List
Returns a new instance of List.
37 38 39 |
# File 'lib/fabulator/expr/function.rb', line 37 def initialize(args) @args = args end |
Instance Method Details
#run(context, autovivify = false) ⇒ Object
41 42 43 |
# File 'lib/fabulator/expr/function.rb', line 41 def run(context, autovivify = false) @args.collect{ |arg| arg.run(context, autovivify).flatten } end |