From 91061e74e442351c79385c9e287532579ec4e3fc Mon Sep 17 00:00:00 2001 From: watson1978 Date: Sat, 14 Jul 2018 17:04:56 +0000 Subject: [PATCH] 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 --- variable.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/variable.c b/variable.c index 9afed854ae..96073df903 100644 --- a/variable.c +++ b/variable.c @@ -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 obj, returning that * variable's value. + * String arguments are converted to symbols. * * class Dummy * attr_reader :var