Class: Cayuga::Object::Constants
- Defined in:
- lib/cayuga/object/constants.rb
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
- #constant(constant) ⇒ Object (also: #[])
- #directory(constant) ⇒ Object
- #file(constant) ⇒ Object
- #repository(constant) ⇒ Object
Methods inherited from Singleton
Methods inherited from Object
Methods included from Tools::Loggable
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 |