/app/models/Task.io
Unknown | 26 lines | 20 code | 6 blank | 0 comment | 0 complexity | 9874856746149073ca023d36062f1787 MD5 | raw file
- Task := Object clone do(
- init := method(
- id ::= nil
- completed ::= false
- deadline ::= Date copy(Date today)
- taskDescription ::= Sequence clone
- taskName ::= Sequence clone
- )
- isPending := method(
- completed not and deadline isPast not
- )
- isMissed := method(
- completed not and deadline isPast
- )
- isValid := method(
- deadline isNil not and
- taskDescription isEmpty not and
- taskName isEmpty not
- )
- )