remove_class_variable(sym) â obj
Instance Public methods
Removes the definition of the sym, returning that constant's value.
1 2 3 4 5 6 | class Dummy @@var = 99 puts @@var remove_class_variable(: @@var ) p( defined ? @@var ) end |
produces:
1 2 | 99 nil |
Please login to continue.