Module Mack::ViewHelpers::ObjectHelpers
In: lib/mack/view_helpers/object_helpers.rb

Methods

debug  

Public Instance methods

Useful for debugging objects in views. Just pass it an object and will grap the pretty print of the inspect and wrap it in HTML pre tags.

[Source]

    # File lib/mack/view_helpers/object_helpers.rb, line 8
 8:       def debug(obj)
 9:         "<pre>#{pp_to_s(obj).gsub('<', '&lt;')}</pre>"
10:       end

[Validate]