class Thor::TaskHash

def each(local = false, &block)

def each(local = false, &block)
  super() { |k, t| yield k, t.with_klass(@klass) }
  @klass.superclass.tasks.each { |k, t| yield k, t.with_klass(@klass) } unless local || @klass == Thor
end