Improve docs for Module#remove_class_variable [ci skip]
This commit is contained in:
parent
ac69849e49
commit
c987be2552
@ -3328,13 +3328,12 @@ rb_mod_class_variables(int argc, const VALUE *argv, VALUE mod)
|
|||||||
* call-seq:
|
* call-seq:
|
||||||
* remove_class_variable(sym) -> obj
|
* remove_class_variable(sym) -> obj
|
||||||
*
|
*
|
||||||
* Removes the definition of the <i>sym</i>, returning that
|
* Removes the named class variable from the receiver, returning that
|
||||||
* constant's value.
|
* variable's value.
|
||||||
*
|
*
|
||||||
* class Dummy
|
* class Example
|
||||||
* @@var = 99
|
* @@var = 99
|
||||||
* puts @@var
|
* puts remove_class_variable(:@@var)
|
||||||
* remove_class_variable(:@@var)
|
|
||||||
* p(defined? @@var)
|
* p(defined? @@var)
|
||||||
* end
|
* end
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user