Class: TaskLoop::DefaultRule

Inherits:
Rule
  • Object
show all
Defined in:
lib/taskloop/rules/default_rule.rb

Constant Summary

Constants inherited from Rule

Rule::UNIT

Instance Attribute Summary

Attributes inherited from Rule

#unit

Instance Method Summary collapse

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

#descObject



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

Returns:

  • (Boolean)


7
8
9
# File 'lib/taskloop/rules/default_rule.rb', line 7

def is_conform_rule?(last_exec_time)
  return true
end