Class: TaskLoop::BoundaryRule

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

Direct Known Subclasses

EndPointBoundaryRule, StartPointBoundaryRule

Constant Summary collapse

BOUNDARY =
{
  :start    => 0,
  :end      => 1,
}

Constants inherited from Rule

Rule::UNIT

Instance Attribute Summary collapse

Attributes inherited from Rule

#unit

Instance Method Summary collapse

Methods inherited from Rule

#is_conform_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

#boundaryObject

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

#descObject



17
18
19
# File 'lib/taskloop/rules/boundary_rule.rb', line 17

def desc
  super + "; boundary: #{boundary.to_s}"
end