Class: Fabulator::Expr::List

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

Instance Method Summary collapse

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