Module: Scrum::CardTypeDetection
- Included in:
- SprintBoard, SprintPlanningBoard
- Defined in:
- lib/scrum/card_type_detection.rb
Instance Method Summary collapse
- #seabed?(card) ⇒ Boolean
- #seabed_card ⇒ Object
- #sticky?(card) ⇒ Boolean
- #waterline?(card) ⇒ Boolean
- #waterline_card ⇒ Object
Instance Method Details
#seabed?(card) ⇒ Boolean
11 12 13 |
# File 'lib/scrum/card_type_detection.rb', line 11 def seabed?(card) card.name =~ /s.?e.?a.?b.?e.?d/i end |
#seabed_card ⇒ Object
19 20 21 |
# File 'lib/scrum/card_type_detection.rb', line 19 def seabed_card @backlog_list.cards.find { |card| seabed?(card) } end |
#sticky?(card) ⇒ Boolean
3 4 5 |
# File 'lib/scrum/card_type_detection.rb', line 3 def sticky?(card) card.labels.any? { |l| l.name == @settings.label_names["sticky"] } end |
#waterline?(card) ⇒ Boolean
7 8 9 |
# File 'lib/scrum/card_type_detection.rb', line 7 def waterline?(card) card.name =~ /w.?a.?t.?e.?r.?l.?i.?n.?e/i end |
#waterline_card ⇒ Object
15 16 17 |
# File 'lib/scrum/card_type_detection.rb', line 15 def waterline_card @backlog_list.cards.find { |card| waterline?(card) } end |