Module: DHS::OptionBlocks::ClassMethods

Defined in:
lib/dhs/concerns/option_blocks.rb

Instance Method Summary collapse

Instance Method Details

#options(options, &block) ⇒ Object



15
16
17
18
19
20
# File 'lib/dhs/concerns/option_blocks.rb', line 15

def options(options, &block)
  CurrentOptionBlock.options = options
  block.call
ensure
  CurrentOptionBlock.options = nil
end