diff options
-rw-r--r-- | lib/ostruct.rb | 5 | ||||
-rw-r--r-- | test/ostruct/test_ostruct.rb | 6 |
2 files changed, 7 insertions, 4 deletions
@@ -202,10 +202,7 @@ class OpenStruct # # 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 # # Used internally to defined properties on the @@ -333,4 +333,10 @@ class TC_OpenStruct < Test::Unit::TestCase assert_equal true, os1.eql?(os2) assert_equal 300.42, os2.pension end end |