Sha256: 654267bcc04786c5498030c8b4e2ced29bd3c5913c826e25e41331e2d4a78111
Contents?: true
Size: 355 Bytes
Versions: 2
Compression:
Stored size: 355 Bytes
Contents
module CoreExtensions module OpenStruct module HashAssignment def []=(name, value) modifiable[new_ostruct_member(name)] = value end end end end # In Ruby 1.9.3 OpenStruct#[]= doesn't exist unless OpenStruct.public_instance_methods.include?(:[]=) OpenStruct.send(:include, CoreExtensions::OpenStruct::HashAssignment) end
Version data entries
2 entries across 2 versions & 1 rubygems