Class: Litter::Config
- Inherits:
-
Object
- Object
- Litter::Config
- Defined in:
- lib/litter/config.rb
Overview
Builds a hash config.
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
-
#initialize(custom_config = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(custom_config = {}) ⇒ Config
Returns a new instance of Config.
10 11 12 |
# File 'lib/litter/config.rb', line 10 def initialize(custom_config = {}) @hash = default_config.deep_merge(custom_config) end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
6 7 8 |
# File 'lib/litter/config.rb', line 6 def hash @hash end |