Module: Variables::CoreExt::Module

Defined in:
lib/variables/core_ext/module.rb

Instance Method Summary collapse

Instance Method Details

#class_variable(name) ⇒ Object



7
8
9
# File 'lib/variables/core_ext/module.rb', line 7

def class_variable(name)
  ClassVariable.new(self, name)
end

#class_variable_fetch(name, *args, &block) ⇒ Object



11
12
13
# File 'lib/variables/core_ext/module.rb', line 11

def class_variable_fetch(name, *args, &block)
  fetch_variable(:class_variable, name, *args, &block)
end

#class_variable_replace(name, *args, &block) ⇒ Object



15
16
17
# File 'lib/variables/core_ext/module.rb', line 15

def class_variable_replace(name, *args, &block)
  replace_variable(:class_variable, name, *args, &block)
end