lib/delorean/base.rb in delorean_lang-0.3.0 vs lib/delorean/base.rb in delorean_lang-0.3.1
- old
+ new
@@ -74,12 +74,11 @@
end
def %(args)
raise "bad arg to %" unless args.is_a?(Array)
- args.each_with_object({}) { |attr, h|
- h[attr] = evaluate(attr)
- }
+ # FIXME: params.clone!!!!
+ engine.evaluate_attrs_hash(node, args, params.clone)
end
# add new arguments, results in a new NodeCall
def +(args)
raise "bad arg to %" unless args.is_a?(Hash)