method

new

new(name=:spec)
public

Defines a new task, using the name name.