[前][次][番号順一覧][スレッド一覧]

ruby-changes:25320

From: marcandre <ko1@a...>
Date: Mon, 29 Oct 2012 06:19:57 +0900 (JST)
Subject: [ruby-changes:25320] marcandRe: r37371 (trunk): * lib/ostruct.rb: Protect new_ostruct_member [#6056]

marcandre	2012-10-29 06:18:32 +0900 (Mon, 29 Oct 2012)

  New Revision: 37371

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37371

  Log:
    * lib/ostruct.rb: Protect new_ostruct_member [ruby-core:42779] [#6056]

  Modified files:
    trunk/lib/ostruct.rb

Index: lib/ostruct.rb
===================================================================
--- lib/ostruct.rb	(revision 37370)
+++ lib/ostruct.rb	(revision 37371)
@@ -143,7 +143,7 @@
   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 @@
     end
     name
   end
+  protected :new_ostruct_member
 
   def method_missing(mid, *args) # :nodoc:
     mname = mid.id2name

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]