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
#1 Updated by Marc-Andre Lafortune over 4 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100