Class: Reading::Config
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.
11 12 13 14 15 |
# File 'lib/reading/config.rb', line 11 def initialize(custom_config = {}) @custom_config = custom_config build_hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
7 8 9 |
# File 'lib/reading/config.rb', line 7 def hash @hash end |