class Thor::Task
def public_method?(instance) #:nodoc:
Given a target, checks if this class name is not a private/protected method.
def public_method?(instance) #:nodoc: collection = instance.private_methods + instance.protected_methods (collection & [name.to_s, name.to_sym]).empty? end