Methods

Files

AwesomePrintActionView

Copyright (c) 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

Public Instance Methods

ap(object, options = {}) click to toggle source
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/ap/mixin/action_view.rb, line 9
def ap_debug(object, options = {})
  object.ai(options.merge(:html => true)).sub(/^<pre([\s>])/, '<pre class="debug_dump"\1')
end
Also aliased as: ap

[Validate]

Generated with the Darkfish Rdoc Generator 2.