Class: Cayuga::Object::Constants

Inherits:
Singleton show all
Defined in:
lib/cayuga/object/constants.rb

Instance Attribute Summary

Attributes inherited from Object

#configuration_name

Instance Method Summary collapse

Methods inherited from Singleton

create

Methods inherited from Object

create

Methods included from Tools::Loggable

included

Instance Method Details

#constant(constant) ⇒ Object Also known as: []



9
10
11
# File 'lib/cayuga/object/constants.rb', line 9

def constant(constant)
  constants[constant.symbolize]
end

#directory(constant) ⇒ Object



15
16
17
# File 'lib/cayuga/object/constants.rb', line 15

def directory(constant)
  directories[constant.symbolize]
end

#file(constant) ⇒ Object



19
20
21
# File 'lib/cayuga/object/constants.rb', line 19

def file(constant)
  files[constant.symbolize]
end

#repository(constant) ⇒ Object



23
24
25
# File 'lib/cayuga/object/constants.rb', line 23

def repository(constant)
  repositories[constant.symbolize]
end