зеркало из https://github.com/github/ruby.git
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:
Родитель
1761f45837
Коммит
91061e74e4
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче