lib/hashed_struct.rb in hashed_struct-0.0.1 vs lib/hashed_struct.rb in hashed_struct-0.0.2

- old
+ new

@@ -1,14 +1,12 @@ require 'hashed_struct/version' class HashedStruct def self.new(*fields) - Struct.new(*fields).tap do |klass| - klass.class_eval do - def initialize(options={}) - super(*options.values_at(*self.class.members)) - end + Struct.new(*fields) do + def initialize(options={}) + super(*options.values_at(*self.class.members)) end end end end \ No newline at end of file