Class: Rubydoop::Context::Jobs
- Inherits:
-
Object
- Object
- Rubydoop::Context::Jobs
- Defined in:
- lib/rubydoop/dsl.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
Instance Method Summary collapse
- #add(job) ⇒ Object
-
#initialize ⇒ Jobs
constructor
A new instance of Jobs.
Constructor Details
#initialize ⇒ Jobs
Returns a new instance of Jobs.
420 421 422 |
# File 'lib/rubydoop/dsl.rb', line 420 def initialize @jobs = [] end |
Instance Attribute Details
#jobs ⇒ Object (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 |