From 4a9b958e8b81752009e96e3a4a9e41324cb14811 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Mon, 13 Jan 2014 00:18:41 +0900 Subject: [PATCH] Fix doc for Pry::Method.from_str to match refactoring. --- lib/pry/method.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/pry/method.rb b/lib/pry/method.rb index 7486001e..34aa30f5 100644 --- a/lib/pry/method.rb +++ b/lib/pry/method.rb @@ -31,8 +31,7 @@ class Pry # search in, find and return the requested method wrapped in a `Pry::Method` # instance. # - # @param [String, nil] name The name of the method to retrieve, or `nil` to - # delegate to `from_binding` instead. + # @param [String] name The name of the method to retrieve. # @param [Binding] target The context in which to search for the method. # @param [Hash] options # @option options [Boolean] :instance Look for an instance method if `name` doesn't @@ -40,7 +39,7 @@ class Pry # @option options [Boolean] :methods Look for a bound/singleton method if `name` doesn't # contain any context. # @return [Pry::Method, nil] A `Pry::Method` instance containing the requested - # method, or `nil` if no method could be located matching the parameters. + # method, or `nil` if name is `nil` or no method could be located matching the parameters. def from_str(name, target=TOPLEVEL_BINDING, options={}) if name.nil? nil