# File lib/thor/task.rb, line 11 def run(instance, args=[]) unless (instance.methods & [name.to_s, name.to_sym]).empty? raise Error, "could not find Thor class or task '#{name}'" end super end