Class: TaskLoop::DefaultRule
- Defined in:
- lib/taskloop/rules/default_rule.rb
Constant Summary
Constants inherited from Rule
Instance Attribute Summary
Attributes inherited from Rule
Instance Method Summary collapse
- #desc ⇒ Object
-
#initialize(unit) ⇒ DefaultRule
constructor
A new instance of DefaultRule.
- #is_conform_rule?(last_exec_time) ⇒ Boolean
Constructor Details
#initialize(unit) ⇒ DefaultRule
Returns a new instance of DefaultRule.
3 4 5 |
# File 'lib/taskloop/rules/default_rule.rb', line 3 def initialize(unit) super unit end |
Instance Method Details
#desc ⇒ Object
11 12 13 |
# File 'lib/taskloop/rules/default_rule.rb', line 11 def desc super + "; default rule" end |
#is_conform_rule?(last_exec_time) ⇒ Boolean
7 8 9 |
# File 'lib/taskloop/rules/default_rule.rb', line 7 def is_conform_rule?(last_exec_time) return true end |