PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/lib/Registry.io

http://github.com/pgregory/blackpool
Unknown | 16 lines | 12 code | 4 blank | 0 comment | 0 complexity | 6b90c8d6745c0addc227fb57c5e5cbd5 MD5 | raw file
 1Registry := Object clone do(
 2  init := method(
 3    items ::= List clone
 4  )
 5
 6  register := method(item,
 7    items append(item)
 8    (items size - 1) asString
 9  )
10
11  find := method(key,
12    items at(key asNumber)
13  )
14)
15
16