class 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 ?>
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/uriencodetag.rb, line 22 def render( render_state ) raw = super return escape_uri( raw.to_s ) end