Class: Cl::Config
- Inherits:
-
Object
- Object
- Cl::Config
- Includes:
- Merge
- Defined in:
- lib/cl/config.rb,
lib/cl/config/env.rb,
lib/cl/config/files.rb
Defined Under Namespace
Constant Summary
Constants included from Merge
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(name) ⇒ Config
constructor
A new instance of Config.
- #to_h ⇒ Object
Methods included from Merge
Constructor Details
#initialize(name) ⇒ Config
Returns a new instance of Config.
11 12 13 14 |
# File 'lib/cl/config.rb', line 11 def initialize(name) @name = name @opts = load end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/cl/config.rb', line 9 def name @name end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
9 10 11 |
# File 'lib/cl/config.rb', line 9 def opts @opts end |
Instance Method Details
#to_h ⇒ Object
16 17 18 |
# File 'lib/cl/config.rb', line 16 def to_h opts end |