Class: Rubydoop::Context::Jobs

Inherits:
Object
  • Object
show all
Defined in:
lib/rubydoop/dsl.rb

Direct Known Subclasses

Parallel, Sequence

Defined Under Namespace

Classes: Parallel, Sequence

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJobs

Returns a new instance of Jobs.



420
421
422
# File 'lib/rubydoop/dsl.rb', line 420

def initialize
  @jobs = []
end

Instance Attribute Details

#jobsObject (readonly)

Returns the value of attribute jobs.



418
419
420
# File 'lib/rubydoop/dsl.rb', line 418

def jobs
  @jobs
end

Instance Method Details

#add(job) ⇒ Object



424
425
426
# File 'lib/rubydoop/dsl.rb', line 424

def add(job)
  @jobs.push(job)
end