Silence method redefinition warning

This commit is contained in:
Jack Nagel 2015-03-10 23:25:31 -04:00
parent f3e4b563d4
commit b149580632

View File

@ -3,12 +3,13 @@ require 'irb'
module IRB
@setup_done = false
def IRB.parse_opts
extend Module.new {
def parse_opts
end
def IRB.start_within(binding)
def start_within(binding)
unless @setup_done
IRB.setup(nil)
setup(nil)
@setup_done = true
end
@ -30,4 +31,5 @@ module IRB
irb_at_exit
end
end
}
end