Class: Variables::ClassVariable

Inherits:
Variable
  • Object
show all
Defined in:
lib/variables/class_variable.rb

Instance Attribute Summary

Attributes inherited from Variable

#name, #owner

Instance Method Summary collapse

Methods inherited from Variable

#defined?, #fetch, #initialize, #replace, #set

Constructor Details

This class inherits a constructor from Variables::Variable

Instance Method Details

#getObject



5
6
7
8
# File 'lib/variables/class_variable.rb', line 5

def get
  super
rescue NameError
end

#method_prefixObject



10
11
12
# File 'lib/variables/class_variable.rb', line 10

def method_prefix
  'class'
end

#variable_prefixObject



14
15
16
# File 'lib/variables/class_variable.rb', line 14

def variable_prefix
  '@@'
end