class Thor::Task

def private_method?(instance)

def private_method?(instance)
  !(instance.private_methods & [name.to_s, name.to_sym]).empty?
end