From ff18a5d9ed434bb0c9c68f492e2462a70b1fced6 Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 3 Mar 2007 07:09:24 +0000 Subject: * object.c (rb_obj_ivar_set): RDoc updated according to a suggestion from Brian Candler . [ruby-core:10469] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@11963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index 3719817d8c..706455713c 100644 --- a/object.c +++ b/object.c @@ -1966,10 +1966,12 @@ rb_obj_public_methods(argc, argv, obj) /* * call-seq: * obj.instance_variable_get(symbol) => obj - * - * Returns the value of the given instance variable (or throws a - * NameError exception). The @ part of the - * variable name should be included for regular instance variables + * + * Returns the value of the given instance variable, or nil if the + * instance variable is not set. The @ part of the + * variable name should be included for regular instance + * variables. Throws a NameError exception if the + * supplied symbol is not valid as an instance variable name. * * class Fred * def initialize(p1, p2) -- cgit v1.2.3