Silence method redefinition warning
This commit is contained in:
parent
f3e4b563d4
commit
b149580632
@ -3,12 +3,13 @@ require 'irb'
|
|||||||
module IRB
|
module IRB
|
||||||
@setup_done = false
|
@setup_done = false
|
||||||
|
|
||||||
def IRB.parse_opts
|
extend Module.new {
|
||||||
|
def parse_opts
|
||||||
end
|
end
|
||||||
|
|
||||||
def IRB.start_within(binding)
|
def start_within(binding)
|
||||||
unless @setup_done
|
unless @setup_done
|
||||||
IRB.setup(nil)
|
setup(nil)
|
||||||
@setup_done = true
|
@setup_done = true
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -30,4 +31,5 @@ module IRB
|
|||||||
irb_at_exit
|
irb_at_exit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user