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