From 5c3a7bf109e55ecae2664032bce47506db36d9a7 Mon Sep 17 00:00:00 2001 From: Casey Dahlin Date: Wed, 10 Dec 2008 16:03:22 -0500 Subject: Add a method to print all states in color --- state.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/state.rb b/state.rb index f1387a7..e971843 100644 --- a/state.rb +++ b/state.rb @@ -264,6 +264,13 @@ class State nil end + # Print color string reps of all states + def State.print_all_color + @@states.each do |s| + puts s.to_s_color if s.is_a? self + end + end + # Look at the list of active states and see how the deps of this state could # be met def State.depsolve -- cgit