lib/proforma/modeling/generic_container.rb in proforma-1.0.0.pre.alpha vs lib/proforma/modeling/generic_container.rb in proforma-1.0.0
- old
+ new
@@ -38,12 +38,10 @@
end
def compile(data, evaluator)
compiled_children = children.map { |child| child.compile(data, evaluator) }
- args = {}.tap { |hash| hash[child_key] = compiled_children }
-
- self.class.new(args)
+ self.class.new(child_key => compiled_children)
end
private
attr_reader :child_class, :child_key, :children