Module: Doing::ItemState
- Included in:
- Item
- Defined in:
- lib/doing/item/state.rb
Overview
State queries for a Doing entry
Instance Method Summary collapse
-
#finished? ⇒ Boolean
Test if item has a @done tag.
-
#should_finish? ⇒ Boolean
Test if item is included in never_finish config and thus should not receive a @done tag.
-
#should_time? ⇒ Boolean
Test if item is included in never_time config and thus should not receive a date on the @done tag.
-
#unfinished? ⇒ Boolean
Test if item does not contain @done tag.
Instance Method Details
#finished? ⇒ Boolean
Test if item has a @done tag
9 10 11 |
# File 'lib/doing/item/state.rb', line 9 def finished? ('done') end |
#should_finish? ⇒ Boolean
Test if item is included in never_finish config and thus should not receive a @done tag
28 29 30 |
# File 'lib/doing/item/state.rb', line 28 def should_finish? should?('never_finish') end |
#should_time? ⇒ Boolean
Test if item is included in never_time config and thus should not receive a date on the @done tag
38 39 40 |
# File 'lib/doing/item/state.rb', line 38 def should_time? should?('never_time') end |
#unfinished? ⇒ Boolean
Test if item does not contain @done tag
18 19 20 |
# File 'lib/doing/item/state.rb', line 18 def unfinished? ('done', negate: true) end |