mod.class_variable_get(symbol) â obj
Instance Public methods
Returns the value of the given class variable (or throws a
NameError
exception). The @@
part of the variable
name should be included for regular class variables
class Fred @@foo = 99 end Fred.class_variable_get(:@@foo) #=> 99
Please login to continue.