1
0
Fork 0
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:
John Mair 2011-05-30 15:21:48 +12:00
parent 32ad27a847
commit 32bfa27b5a
2 changed files with 2 additions and 7 deletions

View file

@ -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

View file

@ -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