Class: Variables::ClassVariable
Instance Attribute Summary
Attributes inherited from Variable
#name, #owner
Instance Method Summary
collapse
Methods inherited from Variable
#defined?, #fetch, #initialize, #replace, #set
Instance Method Details
#get ⇒ Object
5
6
7
8
|
# File 'lib/variables/class_variable.rb', line 5
def get
super
rescue NameError
end
|
#method_prefix ⇒ Object
10
11
12
|
# File 'lib/variables/class_variable.rb', line 10
def method_prefix
'class'
end
|
#variable_prefix ⇒ Object
14
15
16
|
# File 'lib/variables/class_variable.rb', line 14
def variable_prefix
'@@'
end
|