module AwesomePrint::ActionView

Public Instance Methods

ap(object, options = {})
Alias for: ap_debug
ap_debug(object, options = {}) click to toggle source

Use HTML colors and add default “debug_dump” class to the resulting HTML.

# File lib/awesome_print/ext/action_view.rb, line 10
def ap_debug(object, options = {})
  object.ai(options.merge(:html => true)).sub(/^<pre([\s>])/, '<pre class="debug_dump"\\1')
end
Also aliased as: ap