Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed the requires for pp and yaml.

  • Loading branch information...
commit 184419ee6bf049a215d8d2a4fb05db7d39952fd5 1 parent 6103a53
@apeiros authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/irb_drop.rb
View
4 lib/irb_drop.rb
@@ -10,12 +10,10 @@ module Kernel
# irb_drop(binding)
def irb_drop(context=nil, *argv)
require 'irb'
- require 'pp'
- require 'yaml'
restore_trap = false
old_trap = nil
original_argv = ARGV.dup
- ARGV.replace(argv) # IRB is being stupid
+ ARGV.replace(argv) # IRB is being stupid (it processes ARGV, destroying it in the process)
unless defined? ::IRB_SETUP
IRB.setup(nil)
Object.const_set(:IRB_SETUP, true)
Please sign in to comment.
Something went wrong with that request. Please try again.