Class: SimpleConfig

Inherits:
Kvx
  • Object
show all
Defined in:
lib/simple-config.rb

Instance Method Summary collapse

Constructor Details

#initialize(x, attributes: {}) ⇒ SimpleConfig

Returns a new instance of SimpleConfig.



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/simple-config.rb', line 11

def initialize(x, attributes: {})    

  if x.is_a? SimpleConfig then
    @to_h = x.to_h
  elsif x
    super(x, attributes: attributes)
  end
  
  @identifier = 'simple-config'    
  
end