1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

added Pry::Method#undefined? and Pry::Method::Disowned#undefined?

This commit is contained in:
John Mair 2011-12-21 04:24:35 +13:00
parent 778c50316f
commit 9bde80ba2b
2 changed files with 13 additions and 1 deletions

View file

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

View file

@ -1,3 +1,3 @@
class Pry
VERSION = "0.9.8.0pre1"
VERSION = "0.9.8pre2"
end