Class: SimpleConfig
- Inherits:
-
Kvx
- Object
- Kvx
- SimpleConfig
- Defined in:
- lib/simple-config.rb
Instance Method Summary collapse
-
#initialize(x, attributes: {}, auto_detect_type: true, debug: false) ⇒ SimpleConfig
constructor
A new instance of SimpleConfig.
Constructor Details
#initialize(x, attributes: {}, auto_detect_type: true, debug: false) ⇒ SimpleConfig
Returns a new instance of SimpleConfig.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/simple-config.rb', line 11 def initialize(x, attributes: {}, auto_detect_type: true, debug: false) @ignore_blank_lines = true @auto_detect_type = auto_detect_type if x.is_a? SimpleConfig then @to_h = x.to_h elsif x super(x, attributes: attributes, debug: debug) end @identifier = 'simple-config' end |