Module: Debuggable

Extended by:
Decoratable
Defined in:
lib/decoratable/debuggable.rb

Instance Method Summary collapse

Methods included from Decoratable

extended

Instance Method Details

#debuggable(options = { on: [RuntimeError] }) ⇒ Object



6
7
8
9
10
# File 'lib/decoratable/debuggable.rb', line 6

def debuggable(options = { on: [RuntimeError] })
  yield
rescue *options[:on]
  require "debug"
end