summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/state.rb b/state.rb
index b1f7de0..d8f6458 100644
--- a/state.rb
+++ b/state.rb
@@ -276,6 +276,11 @@ class State
nil
end
+ # Get all states of this type
+ def State.get_all
+ @@states.select{ |x| x.is_a? self }
+ end
+
# Depsolve all state classes. This method is not defined in subclasses of
# State.
def State.depsolve_all