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:
parent
778c50316f
commit
9bde80ba2b
2 changed files with 13 additions and 1 deletions
|
@ -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]
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
class Pry
|
||||
VERSION = "0.9.8.0pre1"
|
||||
VERSION = "0.9.8pre2"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue