Mercurial > hg > IntentMadeManifest
comparison intentmademanifest/api.py @ 2:b8be785f8e87
lets pretend that were dead...er, doing something
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 07 Apr 2013 13:51:29 -0700 |
parents | 6aafed869664 |
children |
comparison
equal
deleted
inserted
replaced
1:6aafed869664 | 2:b8be785f8e87 |
---|---|
19 - initial_state: if settable | 19 - initial_state: if settable |
20 """ | 20 """ |
21 | 21 |
22 def state(self): | 22 def state(self): |
23 """ | 23 """ |
24 current state | 24 current state; |
25 returns the current state object | |
25 """ | 26 """ |
27 | |
28 class State(object): | |
29 """a state""" | |
30 | |
31 def __init__(self, *transitions): | |
32 | |
33 def available(): | |
34 """avalable transitions""" | |
35 | |
36 def transit(): | |
37 """invoke a transition""" |