Sha256: 58227187ec7e218d583f8c84f31f3d214489efb0eb48feeedcc7698432ee9e7b

Contents?: true

Size: 298 Bytes

Versions: 6

Compression:

Stored size: 298 Bytes

Contents

require 'debugging'
require 'binding.repl'

begin
  require 'binding_of_caller'
rescue LoadError
  warn 'Using Debugging#repl requires the "binding_of_caller" gem. Please install it or add it to your Gemfile!'
end

module Debugging
  private

  def repl
    binding.of_caller(1).repl.auto
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
debugging-1.1.2 lib/debugging/repl.rb
debugging-1.1.1 lib/debugging/repl.rb
debugging-1.1.0 lib/debugging/repl.rb
debugging-1.0.2 lib/debugging/repl.rb
debugging-1.0.1 lib/debugging/repl.rb
debugging-1.0.0 lib/debugging/repl.rb