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
11 12 13 |
# File 'lib/doing/item/state.rb', line 11 def finished? ('done') end |
#should_finish? ⇒ Boolean
Test if item is included in never_finish config and thus should not receive a @done tag
30 31 32 |
# File 'lib/doing/item/state.rb', line 30 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
40 41 42 |
# File 'lib/doing/item/state.rb', line 40 def should_time? should?('never_time') end |
#unfinished? ⇒ Boolean
Test if item does not contain @done tag
20 21 22 |
# File 'lib/doing/item/state.rb', line 20 def unfinished? ('done', negate: true) end |