summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-30 14:39:35 +0000
committerayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-30 14:39:35 +0000
commitff529cdc256484e75b7f8cfd4af472c017b49342 (patch)
treee1a0859e6f2300b0d8b31f7d8119b8cd21abfb42 /variable.c
parent5db5677c6662bf56b06a06b132d946c6265fae15 (diff)
downloadruby-ff529cdc256484e75b7f8cfd4af472c017b49342.tar.gz
* variable.c: Adding extra example in docs. [Bug #9210]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/variable.c b/variable.c
index 350bb582db..424730dcb9 100644
--- a/variable.c
+++ b/variable.c
@@ -2517,8 +2517,9 @@ cvar_list(void *data)
* 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