lib/motion/util.rb in rm-extensions-0.1.6 vs lib/motion/util.rb in rm-extensions-0.1.7
- old
+ new
@@ -1,6 +1,14 @@
module RMExtensions
+ def self.debug?
+ !!@debug
+ end
+
+ def self.debug!(bool=true)
+ @debug = bool
+ end
+
module ObjectExtensions
module Util
# Raises an exception when called from a thread other than the main thread.