Class: Recurrent::Configuration
- Inherits:
-
Object
- Object
- Recurrent::Configuration
- Defined in:
- lib/recurrent/configuration.rb
Class Attribute Summary collapse
-
.logging ⇒ Object
Returns the value of attribute logging.
-
.maximum_concurrent_tasks ⇒ Object
Returns the value of attribute maximum_concurrent_tasks.
-
.wait_for_running_tasks_on_exit_for ⇒ Object
Returns the value of attribute wait_for_running_tasks_on_exit_for.
Class Method Summary collapse
Class Attribute Details
.logging ⇒ Object
Returns the value of attribute logging.
6 7 8 |
# File 'lib/recurrent/configuration.rb', line 6 def logging @logging end |
.maximum_concurrent_tasks ⇒ Object
Returns the value of attribute maximum_concurrent_tasks.
6 7 8 |
# File 'lib/recurrent/configuration.rb', line 6 def maximum_concurrent_tasks @maximum_concurrent_tasks end |
.wait_for_running_tasks_on_exit_for ⇒ Object
Returns the value of attribute wait_for_running_tasks_on_exit_for.
6 7 8 |
# File 'lib/recurrent/configuration.rb', line 6 def wait_for_running_tasks_on_exit_for @wait_for_running_tasks_on_exit_for end |
Class Method Details
.block_accessor(*fields) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/recurrent/configuration.rb', line 8 def self.block_accessor(*fields) fields.each do |field| attr_writer field eval(" def #{field} if block_given? @#{field} = Proc.new else @#{field} end end ") end end |