diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-08 00:51:16 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-08 00:51:16 +0000 |
| commit | 1338dcea730a2722cb8175baeb882ffcf3dfe7c2 (patch) | |
| tree | 889c1d2ae92c3dbc0dc00a4e45ed2a91cc450b0c /object.c | |
| parent | 49925b79541ebca9430321ef843f57d95dec289a (diff) | |
| download | ruby-1338dcea730a2722cb8175baeb882ffcf3dfe7c2.tar.gz ruby-1338dcea730a2722cb8175baeb882ffcf3dfe7c2.tar.xz ruby-1338dcea730a2722cb8175baeb882ffcf3dfe7c2.zip | |
* lib/cgi.rb (CGI::Cookie): [ruby-talk:130040]
* object.c: [ruby-doc:818]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
| -rw-r--r-- | object.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2009,7 +2009,8 @@ rb_obj_ivar_get(obj, iv) * * Sets the instance variable names by <i>symbol</i> to * <i>object</i>, thereby frustrating the efforts of the class's - * author to attempt to provide proper encapsulation. + * author to attempt to provide proper encapsulation. The variable + * did not have to exist prior to this call. * * class Fred * def initialize(p1, p2) @@ -2018,7 +2019,8 @@ rb_obj_ivar_get(obj, iv) * end * fred = Fred.new('cat', 99) * fred.instance_variable_set(:@a, 'dog') #=> "dog" - * fred.inspect #=> "#<Fred:0x401b3da8 @a=\"dog\", @b=99>" + * fred.instance_variable_set(:@c, 'cat') #=> "cat" + * fred.inspect #=> "#<Fred:0x401b3da8 @a=\"dog\", @b=99, @c=\"cat\">" */ static VALUE |
