lib/delorean/engine.rb in delorean_lang-0.3.1 vs lib/delorean/engine.rb in delorean_lang-0.3.2
- old
+ new
@@ -341,10 +341,10 @@
def evaluate(node, attr, params={})
evaluate_attrs(node, [attr], params)[0]
end
- def evaluate_attrs_hash(node, attrs, params={})
+ def eval_to_hash(node, attrs, params={})
res = evaluate_attrs(node, attrs, params)
Hash[* attrs.zip(res).flatten(1)]
end
def evaluate_attrs(node, attrs, params={})