Methods

Inversion::Template::UriencodeTag

Inversion URL encoding tag.

This tag is a derivative of the 'attr' tag that encodes the results of its method call according to RFC 3986.

Syntax

<?uriencode foo.bar ?>

Constants

DEFAULT_ENCODED_CHARACTERS

Unreserved characters from section 2.3 of RFC 3986 ALPHA / DIGIT / "-" / "." / "_" / "~"

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.

# File lib/inversion/template/uriencodetag.rb, line 24
def render( render_state )
        raw = super
        return URI.encode( raw.to_s, DEFAULT_ENCODED_CHARACTERS )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.