Class: Cayuga::Object::Constants

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

Overview

noinspection RubyModuleAsSuperclassInspection

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: []



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

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

#directory(constant) ⇒ Object



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

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

#file(constant) ⇒ Object



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

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