Class: Cl::Config::Files
- Inherits:
-
Struct
- Object
- Struct
- Cl::Config::Files
- Includes:
- Merge
- Defined in:
- lib/cl/config/files.rb
Constant Summary collapse
- PATHS =
%w( ~/.%s.yml ./.%s.yml )
Constants included from Merge
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods included from Merge
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/cl/config/files.rb', line 6 def name @name end |
Instance Method Details
#load ⇒ Object
14 15 16 |
# File 'lib/cl/config/files.rb', line 14 def load configs.any? ? symbolize(merge(*configs)) : {} end |