Method: Fabulator::Expr::Tuple#run
- Defined in:
- lib/fabulator/expr/function.rb
#run(context, autovivify = false) ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'lib/fabulator/expr/function.rb', line 51 def run(context, autovivify = false) items = @args.collect{ |arg| arg.run(context, autovivify).flatten }.flatten ret = context.root.anon_node(nil, [ FAB_NS, 'tuple' ]) ret.value = items ret.vtype = [ FAB_NS, 'tuple' ] ret.set_attribute('size', items.size) [ ret ] end |