Class: Dolphin::FlipperStore::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/dolphin/flipper_store.rb

Instance Method Summary collapse

Constructor Details

#initialize(store, &block) ⇒ DSL


6
7
8
9
# File 'lib/dolphin/flipper_store.rb', line 6

def initialize(store, &block)
  @store = store
  instance_eval(&block)
end

Instance Method Details

#flipper(name, &block) ⇒ Object


11
12
13
14
# File 'lib/dolphin/flipper_store.rb', line 11

def flipper(name, &block)
  raise unless block_given?
  @store.set_flipper(name, block)
end