Class: Bijou::EncodeURL

Inherits:
Filter
  • Object
show all
Defined in:
lib/bijou/filters.rb

Overview

The u filter escapes the input, replacing characters that are unsafe for passing as a URL parameter, with their escaped equivalents.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.apply(input) ⇒ Object



60
61
62
# File 'lib/bijou/filters.rb', line 60

def self.apply(input)
  ::CGI::escape(input)
end

Instance Method Details

#render(input) ⇒ Object



56
57
58
# File 'lib/bijou/filters.rb', line 56

def render(input)
  "Bijou::EncodeURL.apply(#{input})"
end