class Inversion::Template::PpTag

Inversion object inspection tag.

This tag dumps the result of the attribute or method chain.

Syntax

<?pp foo.bar ?>

Public Instance Methods

render( render_state ) click to toggle source

Render the method chains against the attributes of the specified ‘render_state` and return them.

Calls superclass method Inversion::Template::AttrTag#render
# File lib/inversion/template/pptag.rb, line 20
def render( render_state )
        raw = super
        buf = String.new( '' )
        PP.pp( raw, buf )
        return self.escape( buf.chomp, render_state )
end