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