diff --git a/lib/pry/method.rb b/lib/pry/method.rb index edbc5f7f..f139d6e1 100644 --- a/lib/pry/method.rb +++ b/lib/pry/method.rb @@ -177,6 +177,12 @@ class Pry @wrapped_owner ||= Pry::WrappedModule.new(owner) end + # Is the method undefined? (aka `Disowned`) + # @return [Boolean] false + def undefined? + false + end + # Get the name of the method including the class on which it was defined. # @example # method(:puts).method_name @@ -433,6 +439,12 @@ class Pry @receiver, @name = *args end + # Is the method undefined? (aka `Disowned`) + # @return [Boolean] true + def undefined? + true + end + # Get the hypothesized owner of the method. # # @return [Object] diff --git a/lib/pry/version.rb b/lib/pry/version.rb index 3bbd92f7..99140fae 100644 --- a/lib/pry/version.rb +++ b/lib/pry/version.rb @@ -1,3 +1,3 @@ class Pry - VERSION = "0.9.8.0pre1" + VERSION = "0.9.8pre2" end