class Thor::Runner
def display_tasks(klass)
Display tasks from the given Thor class.
def display_tasks(klass) unless klass.tasks.empty? base = klass.namespace color = base == "default" ? :magenta : :blue say shell.set_color(base, color, true) say "-" * base.length klass.help(shell, :short => true, :ident => 0, :namespace => true) end end