Module: EXEL::Job
- Defined in:
- lib/exel/job.rb
Defined Under Namespace
Classes: Parser
Class Method Summary collapse
Class Method Details
.define(job_name, &block) ⇒ Object
4 5 6 7 |
# File 'lib/exel/job.rb', line 4 def define(job_name, &block) fail "Job #{job_name.inspect} is already defined" unless registry[job_name].nil? registry[job_name] = block end |
.registry ⇒ Object
9 10 11 |
# File 'lib/exel/job.rb', line 9 def registry @registry ||= {} end |