lib/parametric/struct.rb in parametric-0.2.13 vs lib/parametric/struct.rb in parametric-0.2.14

- old
+ new

@@ -36,9 +36,13 @@ # returns a shallow copy. def to_h _results.output.clone end + def [](key) + _results.output[key.to_sym] + end + def ==(other) other.respond_to?(:to_h) && other.to_h.eql?(to_h) end def merge(attrs = {})