Class: TaskLoop::LoopRule
Constant Summary
Constants inherited from Rule
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
Attributes inherited from Rule
Instance Method Summary collapse
- #desc ⇒ Object
-
#initialize(unit, count) ⇒ LoopRule
constructor
A new instance of LoopRule.
- #is_conform_rule?(last_exec_time) ⇒ Boolean
Constructor Details
#initialize(unit, count) ⇒ LoopRule
Returns a new instance of LoopRule.
6 7 8 9 |
# File 'lib/taskloop/rules/loop_rule.rb', line 6 def initialize(unit, count) super unit @count = count end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
4 5 6 |
# File 'lib/taskloop/rules/loop_rule.rb', line 4 def count @count end |
Instance Method Details
#desc ⇒ Object
17 18 19 |
# File 'lib/taskloop/rules/loop_rule.rb', line 17 def desc super + "; loop: #{count}" end |
#is_conform_rule?(last_exec_time) ⇒ Boolean
11 12 13 14 15 |
# File 'lib/taskloop/rules/loop_rule.rb', line 11 def is_conform_rule?(last_exec_time) # loop rule is different for other rules. It should based on task loop file. # So here returns false return false end |