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

ruby-changes:37066

From: nobu <ko1@a...>
Date: Mon, 5 Jan 2015 14:27:45 +0900 (JST)
Subject: [ruby-changes:37066] nobu:r49147 (trunk): ostruct.rb: table

nobu	2015-01-05 14:27:31 +0900 (Mon, 05 Jan 2015)

  New Revision: 49147

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

  Log:
    ostruct.rb: table
    
    * lib/ostruct.rb (OpenStruct#table): revert for JSON.

  Modified files:
    trunk/lib/ostruct.rb
Index: lib/ostruct.rb
===================================================================
--- lib/ostruct.rb	(revision 49146)
+++ lib/ostruct.rb	(revision 49147)
@@ -255,9 +255,8 @@ class OpenStruct https://github.com/ruby/ruby/blob/trunk/lib/ostruct.rb#L255
   alias :to_s :inspect
 
   attr_reader :table # :nodoc:
+  protected :table
   alias table! table
-  undef table
-  protected :table!
 
   #
   # Compares this object and +other+ for equality.  An OpenStruct is equal to

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

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