diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-08 05:59:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-08 05:59:43 +0000 |
commit | 7b4486c87774f6318b7bd1cabae5480136357c31 (patch) | |
tree | 04282446c3de315144bb4567bacf21dd7267e211 /object.c | |
parent | ac0a38e8cf14a9845a175dafce1e047f593e0450 (diff) | |
download | ruby-7b4486c87774f6318b7bd1cabae5480136357c31.tar.gz |
* merged a patch from Takahiro Kambe <taca@back-street.net> to
support DragonFly BSD. [ruby-dev:26984]
* object.c (rb_mod_cvar_get, rb_mod_cvar_set): document fix from
sheepman <sheepman@sheepman.sakura.ne.jp>; a bug in visibility
description. [ruby-dev:26965]
* sprintf.c (rb_f_sprintf): warn "too many argument" on verbose
mode (-v/-w); backported from 1.9. [ruby-dev:26963]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -2054,7 +2054,10 @@ rb_obj_ivar_set(obj, iv, val) * class Fred * @@foo = 99 * end - * Fred.class_variable_get(:@foo) #=> 99 + * + * def Fred.foo + * class_variable_get(:@@foo) #=> 99 + * end */ static VALUE @@ -2083,7 +2086,11 @@ rb_mod_cvar_get(obj, iv) * @@foo * end * end - * Fred.class_variable_set(:@foo, 101) #=> 101 + * + * def Fred.foo + * class_variable_set(:@@foo, 101) #=> 101 + * end + * Fred.foo * Fred.new.foo #=> 101 */ |