lib/ostruct.rb in ostruct-0.3.0 vs lib/ostruct.rb in ostruct-0.3.1

- old
+ new

@@ -105,11 +105,11 @@ # ending with `!`. # # For all these reasons, consider not using OpenStruct at all. # class OpenStruct - VERSION = "0.3.0" + VERSION = "0.3.1" # # Creates a new OpenStruct object. By default, the resulting OpenStruct # object will have no attributes. # @@ -210,13 +210,10 @@ end # # Provides marshalling support for use by the Marshal library. # - def marshal_load(x) # :nodoc: - x.each_key{|key| new_ostruct_member!(key)} - @table = x - end + alias_method :marshal_load, :update_to_values! # :nodoc: # # Used internally to defined properties on the # OpenStruct. It does this by using the metaprogramming function # define_singleton_method for both the getter method and the setter method.