Sha256: 57172ee651f2e54334610aec5c931195519e61c0072ebc46dd15a60e617b4205

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

require 'binding_of_callers'
require 'pry'

class Binding
  def pry(object=nil, hash={})
    bs = of_callers!.tap &:shift
    Pry.hooks.add_hook :when_started, "original_binding_stack_#{object_id}" do |target, options, pry_self|
      pry_self.inject_local :_bs_, bs, pry_self.current_binding
    end
    Pry.start self
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
binding_of_callers-0.1.3 lib/binding_of_callers/pry.rb