diff --git a/lib/pry/method.rb b/lib/pry/method.rb index 053d7614..da46f81b 100644 --- a/lib/pry/method.rb +++ b/lib/pry/method.rb @@ -59,7 +59,7 @@ class Pry from_obj(target.eval("self"), name, target) else from_str(name, target, :instance => true) or - from_str(name, target, :methods => true) + from_str(name, target, :methods => true) end rescue Pry::RescuableException diff --git a/spec/method_spec.rb b/spec/method_spec.rb index 1ec022e5..304c6feb 100644 --- a/spec/method_spec.rb +++ b/spec/method_spec.rb @@ -62,7 +62,7 @@ describe Pry::Method do meth.should == nil 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 } meth = Pry::Method.from_str("klass.new.hello", Pry.binding_for(binding)) meth.name.should == "hello"