mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
undo whitespace changes
This commit is contained in:
parent
4cf1d05034
commit
01c6f60b7a
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ class Pry
|
||||||
from_obj(target.eval("self"), name, target)
|
from_obj(target.eval("self"), name, target)
|
||||||
else
|
else
|
||||||
from_str(name, target, :instance => true) or
|
from_str(name, target, :instance => true) or
|
||||||
from_str(name, target, :methods => true)
|
from_str(name, target, :methods => true)
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue Pry::RescuableException
|
rescue Pry::RescuableException
|
||||||
|
|
|
@ -62,7 +62,7 @@ describe Pry::Method do
|
||||||
meth.should == nil
|
meth.should == nil
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should look up methods using klass.new.method syntax' do
|
it 'should look up methods using klass.new.method syntax' do
|
||||||
klass = Class.new { def hello; :hello; end }
|
klass = Class.new { def hello; :hello; end }
|
||||||
meth = Pry::Method.from_str("klass.new.hello", Pry.binding_for(binding))
|
meth = Pry::Method.from_str("klass.new.hello", Pry.binding_for(binding))
|
||||||
meth.name.should == "hello"
|
meth.name.should == "hello"
|
||||||
|
|
Loading…
Reference in a new issue