diff options
Diffstat (limited to 'state.rb')
-rw-r--r-- | state.rb | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -217,6 +217,11 @@ class State nil end + # Hold all states of a class + def State.hold(type) + @@states.select{ |x| x.is_a? self }.each{ |x| x.hold(type) } + end + private # Set this state to true def rise |