module Pryable

Public Instance Methods

pryable(options = { on: [RuntimeError] }) { || ... } click to toggle source
# File lib/decoratable/pryable.rb, line 6
def pryable(options = { on: [RuntimeError] })
  yield
rescue *options[:on]
  require "pry"
  binding.pry
end