1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Improve docs for Module#remove_class_variable [ci skip]

This commit is contained in:
Alan Wu 2020-08-02 12:56:06 -04:00
parent ac69849e49
commit c987be2552

View file

@ -3328,13 +3328,12 @@ rb_mod_class_variables(int argc, const VALUE *argv, VALUE mod)
* call-seq:
* remove_class_variable(sym) -> obj
*
* Removes the definition of the <i>sym</i>, returning that
* constant's value.
* Removes the named class variable from the receiver, returning that
* variable's value.
*
* class Dummy
* class Example
* @@var = 99
* puts @@var
* remove_class_variable(:@@var)
* puts remove_class_variable(:@@var)
* p(defined? @@var)
* end
*