Inversion::Template::

PpTag class

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 )

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

# 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