Module: AwesomePrintActionView
- Defined in:
- lib/ap/mixin/action_view.rb
Overview
Copyright © 2010-2011 Michael Dvorkin
Awesome Print is freely distributable under the terms of MIT license. See LICENSE file or www.opensource.org/licenses/mit-license.php
Instance Method Summary collapse
-
#ap_debug(object, options = {}) ⇒ Object
(also: #ap)
Use HTML colors and add default “debug_dump” class to the resulting HTML.
Instance Method Details
#ap_debug(object, options = {}) ⇒ Object Also known as: ap
Use HTML colors and add default “debug_dump” class to the resulting HTML.
9 10 11 |
# File 'lib/ap/mixin/action_view.rb', line 9 def ap_debug(object, = {}) object.ai(.merge(:html => true)).sub(/^<pre([\s>])/, '<pre class="debug_dump"\\1') end |