summaryrefslogtreecommitdiff
path: root/lib/ostruct.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-28 21:18:32 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-28 21:18:32 +0000
commit2dafb0f47a7ae70362aea7649b635e97bb33dcf2 (patch)
tree3d9053226ecfb02e358b432062acd20150b3c575 /lib/ostruct.rb
parentaf29f7d2a36647463b5afdc54c5fa4f7cf9e4275 (diff)
* lib/ostruct.rb: Protect new_ostruct_member [ruby-core:42779] [#6056]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/ostruct.rb')
-rw-r--r--lib/ostruct.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index 084622cd10..894abce89f 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -143,7 +143,7 @@ class OpenStruct
protected :modifiable
#
- # new_ostruct_member is used internally to defined properties on the
+ # Used internally to defined properties on the
# OpenStruct. It does this by using the metaprogramming function
# define_method for both the getter method and the setter method.
#
@@ -157,6 +157,7 @@ class OpenStruct
end
name
end
+ protected :new_ostruct_member
def method_missing(mid, *args) # :nodoc:
mname = mid.id2name