Class: Sequoia::Store

Inherits:
Hash
  • Object
show all
Defined in:
lib/sequoia/store.rb

Overview

Class: Simple container to store internal config

It exists only to make a difference between hash value and internal data

Instance Method Summary collapse

Instance Method Details

#deep_merge!(store) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/sequoia/store.rb', line 9

def deep_merge!(store)
  store.each_pair do |key, value|
    if self[key].is_a?(Store)
      self[key].deep_merge!(value)
    else
      self[key] = value
    end
  end

  self
end