public_method?(instance)
Given a target, checks if this class name is a public method.
# File lib/bundler/vendor/thor/lib/thor/command.rb, line 79 def public_method?(instance) #:nodoc: !(instance.public_methods & [name.to_s, name.to_sym]).empty? end