Module: Kernel

Defined in:
lib/dtask.rb

Instance Method Summary collapse

Instance Method Details

#setup(&block) ⇒ Object

Setup the DTask configuration.



107
108
109
# File 'lib/dtask.rb', line 107

def setup(&block)
  DTask::Config.instance.instance_eval(&block)
end

#task(name, &block) ⇒ Object

Defines a task.



102
103
104
# File 'lib/dtask.rb', line 102

def task(name, &block)
  DTask::TASK[name] = block
end