Project
General
Profile
Sign in
Register
Home
Projects
Help
Ruby
All Projects
Ruby
Overview
Activity
Roadmap
Issues
Repository
«
Previous
|
Next
»
Revision 3bf9b2f0
Added by
Eregon (Benoit Daloze)
about 10 years
ago
ID
3bf9b2f0473550caa73468908ac3e18e0f431b85
Parent
5c7f36a1
Child
53896619
lib/ostruct.rb: Finish defining OpenStruct attributes lazily.
Patch by @sferik in [GH-1037]:
https://github.com/ruby/ruby/pull/1037
This commit is an addendum to
https://github.com/ruby/ruby/pull/1033
.
It:
lazily defines attribute accessors for copied and marshaled objects,
returns nil when an attribute reader is not defined, and
defines respond_to_missing? to maintain the same respond_to? behavior
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Loading...
Patch by @sferik in [GH-1037]: https://github.com/ruby/ruby/pull/1037
This commit is an addendum to https://github.com/ruby/ruby/pull/1033.
It:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e