diff options
| -rw-r--r-- | state.rb | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -21,6 +21,13 @@ module UpState # Occurs when the state machine becomes inconsistent class ConsistencyFault < StandardError; end +ENABLE_TRACE = false + +def trace(*args) + return unless ENABLE_TRACE + $stderr.puts *args +end + =begin rdoc An instance of State exists whenever a state can become true without having to toggle any other states, or whenever a state _is_ true. |
