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

- old
+ new

@@ -105,11 +105,11 @@ # ending with `!`. # # For all these reasons, consider not using OpenStruct at all. # class OpenStruct - VERSION = "0.3.1" + VERSION = "0.3.2" # # Creates a new OpenStruct object. By default, the resulting OpenStruct # object will have no attributes. # @@ -248,9 +248,10 @@ if len != 1 raise! ArgumentError, "wrong number of arguments (given #{len}, expected 1)", caller(1) end set_ostruct_member_value!(mname, args[0]) elsif len == 0 + @table[mid] else begin super rescue NoMethodError => err err.backtrace.shift