PageRenderTime 99ms CodeModel.GetById 38ms app.highlight 0ms RepoModel.GetById 60ms app.codeStats 0ms

/app/models/Task.io

http://github.com/pgregory/blackpool
Unknown | 26 lines | 20 code | 6 blank | 0 comment | 0 complexity | 9874856746149073ca023d36062f1787 MD5 | raw file
 1Task := Object clone do(
 2  init := method(
 3    id ::= nil
 4    completed ::= false
 5    deadline ::= Date copy(Date today)
 6    taskDescription ::= Sequence clone
 7    taskName ::= Sequence clone
 8  )
 9
10  isPending := method(
11    completed not and deadline isPast not
12  )
13
14  isMissed := method(
15    completed not and deadline isPast
16  )
17
18  isValid := method(
19    deadline isNil not and
20    taskDescription isEmpty not and
21    taskName isEmpty not
22  )
23)
24
25
26