Method not available on this version
This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
public_method?(instance)
protected
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