OpenStruct.dup doesn't have all its methods
Dupped OpenStructs don't have the same methods.
x = OpenStuct.new(foo: 42) x.dup.methods == x.methods # => false x.respond_to?(:foo) # => true x.dup.respond_to?(:foo) # => false
- lib/ostruct.rb: Create getters and setters after dup. [Bug #6028] [rubyspecs:0380bcc]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Updated by marcandre (Marc-Andre Lafortune) about 7 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100