module Nitro # A collection of useful debuging methods. module DebugMixin private # Returns a
-tag set with the +object+ dumped by YAML. 
	# Very readable way to inspect an object.
	#--
	# TODO: make safe html.
	#++
	
	def debug(object)
	  begin
	    Marshal::dump(object)
	    "
#{object.to_yaml.gsub("  ", "  ")}
" rescue Object # Object couldn't be dumped, perhaps because of singleton # methods, this is the fallback. "#{object.inspect}" end end end end # * George Moschovitis