class Thor::Task::Dynamic

def run(instance, args=[])

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