Method: Lookbook::InputStore#initialize

Defined in:
lib/lookbook/stores/input_store.rb

#initialize(config = nil) ⇒ InputStore

Returns a new instance of InputStore.



10
11
12
13
14
15
16
17
# File 'lib/lookbook/stores/input_store.rb', line 10

def initialize(config = nil)
  @store = {}

  config.to_h.each do |name, opts|
    opts[:system] = true
    add_input(name, opts[:partial], opts.except(:partial))
  end
end