Module: Doing::ItemState

Included in:
Item
Defined in:
lib/doing/item/state.rb

Overview

State queries for a Doing entry

Instance Method Summary collapse

Instance Method Details

#finished?Boolean

Test if item has a @done tag

Returns:

  • (Boolean)

    true item has @done tag

#should_finish?Boolean

Test if item is included in never_finish config and thus should not receive a @done tag

Returns:

  • (Boolean)

    item should receive @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

Returns:

  • (Boolean)

    item should receive @done date

#unfinished?Boolean

Test if item does not contain @done tag

Returns:

  • (Boolean)

    true if item is missing @done tag