Method: Lookbook::TagStore#initialize
- Defined in:
- lib/lookbook/stores/tag_store.rb
#initialize(config = nil) ⇒ TagStore
Returns a new instance of TagStore.
8 9 10 11 |
# File 'lib/lookbook/stores/tag_store.rb', line 8 def initialize(config = nil) @store = {} config.to_h.each { |k, opts| add_tag(k, opts, true) } end |