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

ruby-changes:32384

From: ayumin <ko1@a...>
Date: Mon, 30 Dec 2013 23:39:43 +0900 (JST)
Subject: [ruby-changes:32384] ayumin:r44463 (trunk): * variable.c: Adding extra example in docs. [Bug #9210]

ayumin	2013-12-30 23:39:35 +0900 (Mon, 30 Dec 2013)

  New Revision: 44463

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

  Log:
    * variable.c: Adding extra example in docs. [Bug #9210]

  Modified files:
    trunk/ChangeLog
    trunk/variable.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44462)
+++ ChangeLog	(revision 44463)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Dec 30 23:33:07 2013  Ayumu AIZAWA  <ayumu.aizawa@g...>
+
+	* variable.c: adding extra example in docs.
+	  patched by Steve Klabnik. [Bug #9210]
+
 Mon Dec 30 18:34:18 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* encoding.c (must_encindex, rb_enc_from_index, rb_obj_encoding): mask
Index: variable.c
===================================================================
--- variable.c	(revision 44462)
+++ variable.c	(revision 44463)
@@ -2517,8 +2517,9 @@ cvar_list(void *data) https://github.com/ruby/ruby/blob/trunk/variable.c#L2517
  *     class Two < One
  *       @@var2 = 2
  *     end
- *     One.class_variables   #=> [:@@var1]
- *     Two.class_variables   #=> [:@@var2, :@@var1]
+ *     One.class_variables          #=> [:@@var1]
+ *     Two.class_variables          #=> [:@@var2, :@@var1]
+ *     Two.class_variables(false)   #=> [:@@var2]
  */
 
 VALUE

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

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