Class: TaskLoop::ScopeRule
- Defined in:
- lib/taskloop/rules/scope_rule.rb
Direct Known Subclasses
Constant Summary collapse
- SCOPE =
{ :before => 0, :between => 1, :after => 2, }
Constants inherited from Rule
Instance Attribute Summary collapse
-
#scope ⇒ Object
Returns the value of attribute scope.
Attributes inherited from Rule
Instance Method Summary collapse
- #desc ⇒ Object
-
#initialize(unit, scope) ⇒ ScopeRule
constructor
A new instance of ScopeRule.
Methods inherited from Rule
Constructor Details
#initialize(unit, scope) ⇒ ScopeRule
Returns a new instance of ScopeRule.
13 14 15 16 |
# File 'lib/taskloop/rules/scope_rule.rb', line 13 def initialize(unit, scope) super unit @scope = scope end |
Instance Attribute Details
#scope ⇒ Object
Returns the value of attribute scope.
11 12 13 |
# File 'lib/taskloop/rules/scope_rule.rb', line 11 def scope @scope end |
Instance Method Details
#desc ⇒ Object
18 19 20 |
# File 'lib/taskloop/rules/scope_rule.rb', line 18 def desc super + "; scope: #{scope.to_s}" end |