diff options
author | Xavier Noria <[email protected]> | 2024-03-09 13:58:49 +0100 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-03-15 22:21:43 +0900 |
commit | a26e3bf360ed1044d3b3079402df2e2956921c16 () | |
tree | 2a07038b3774f72eb91e7269cd43302b76c8a718 /variable.c | |
parent | 0dbe3af417a0333b03dc1ebe81f228f366e80c23 (diff) |
Minor edits to variable.c
-rw-r--r-- | variable.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -131,7 +131,7 @@ rb_mod_name(VALUE mod) return classname(mod, &permanent); } -// Similar to logic in rb_mod_const_get() static bool is_constant_path(VALUE name) { @@ -172,8 +172,8 @@ is_constant_path(VALUE name) * introspection of the module and the values that are related to it, such * as instances, constants, and methods. * - * The name should be +nil+ or non-empty string that is not a valid constant - * name (to avoid confusing between permanent and temporary names). * * The method can be useful to distinguish dynamically generated classes and * modules without assigning them to constants. @@ -2228,8 +2228,7 @@ check_id_type(VALUE obj, VALUE *pname, * 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 @@ -2293,8 +2292,7 @@ rb_const_missing(VALUE klass, VALUE name) * * Invoked when a reference is made to an undefined constant in * <i>mod</i>. It is passed a symbol for the undefined constant, and - * returns a value to be used for that constant. The - * following code is an example of the same: * * def Foo.const_missing(name) * name # return the constant name as Symbol |