mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix documentation in Object#remove_instance_variable
It should be described that the string argument will be accept like Object#instance_variable_get. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1761f45837
commit
91061e74e4
1 changed files with 2 additions and 0 deletions
|
@ -1668,9 +1668,11 @@ check_id_type(VALUE obj, VALUE *pname,
|
|||
/*
|
||||
* call-seq:
|
||||
* obj.remove_instance_variable(symbol) -> obj
|
||||
* obj.remove_instance_variable(string) -> obj
|
||||
*
|
||||
* Removes the named instance variable from <i>obj</i>, returning that
|
||||
* variable's value.
|
||||
* String arguments are converted to symbols.
|
||||
*
|
||||
* class Dummy
|
||||
* attr_reader :var
|
||||
|
|
Loading…
Add table
Reference in a new issue