handlers/debug_handler.rb in Sutto-marvin-0.2.4 vs handlers/debug_handler.rb in Sutto-marvin-0.3.0
- old
+ new
@@ -1,5 +1,10 @@
# Use this class to debug stuff as you
# go along - e.g. dump events etc.
-class DebugHandler < Marvin::Base
+class DebugHandler < Marvin::CommandHandler
+ exposes :about
+ def about(*args)
+ reply "Marvin v#{Marvin::VERSION::STRING} running on Ruby #{RUBY_VERSION} (#{RUBY_PLATFORM})"
+ end
+
end
\ No newline at end of file