mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Revert "Made Pry able to cd into procs"
This reverts commit 206c79588c
.
This commit is contained in:
parent
32ad27a847
commit
32bfa27b5a
2 changed files with 2 additions and 7 deletions
|
@ -30,13 +30,13 @@ class Object
|
|||
begin
|
||||
instance_eval %{
|
||||
def __binding_impl__
|
||||
Kernel.binding
|
||||
binding
|
||||
end
|
||||
}
|
||||
rescue TypeError
|
||||
self.class.class_eval %{
|
||||
def __binding_impl__
|
||||
Kernel.binding
|
||||
binding
|
||||
end
|
||||
}
|
||||
end
|
||||
|
|
|
@ -297,11 +297,6 @@ describe Pry do
|
|||
Pry.binding_for(_main_.call).should == TOPLEVEL_BINDING
|
||||
Pry.binding_for(_main_.call).should == Pry.binding_for(_main_.call)
|
||||
end
|
||||
|
||||
it 'should return a binding with the right self for procs' do
|
||||
proc = Proc.new {}
|
||||
Pry.binding_for(proc).eval("self").should.equal? proc
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue