module Thor::Base::ClassMethods

def public_task(*names)


public_task :foo, :bar, :baz
public_task :foo

==== Examples

names:: Method names to be used as tasks
==== Parameters

Allows to use private methods from parent in child classes as tasks.
def public_task(*names)
  names.each do |name|
    class_eval "def #{name}(*); super end"
  end
end