Module: LHS::OptionBlocks::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#options(options, &block) ⇒ Object


18
19
20
21
22
23
# File 'lib/lhs/concerns/option_blocks.rb', line 18

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