method
local_method?
v2_6_3 -
Show latest stable
- Class:
Bundler::Thor::Command
local_method?(instance, name)protected
No documentation available.
# File lib/bundler/vendor/thor/lib/thor/command.rb, line 87
def local_method?(instance, name)
methods = instance.public_methods(false) + instance.private_methods(false) + instance.protected_methods(false)
!(methods & [name.to_s, name.to_sym]).empty?
end