Module: Stack::Filters::Standard
- Includes:
- Register
- Defined in:
- lib/stack/filters/standard.rb
Instance Method Summary
collapse
Methods included from Register
extensions, included, invoke_filter
Instance Method Details
#escape(input) ⇒ Object
14
15
16
|
# File 'lib/stack/filters/standard.rb', line 14
def escape(input)
CGI::escape(input)
end
|
#escape_html(input) ⇒ Object
18
19
20
|
# File 'lib/stack/filters/standard.rb', line 18
def escape_html(input)
CGI::escapeHTML(input)
end
|
#escape_xml(input) ⇒ Object
22
23
24
|
# File 'lib/stack/filters/standard.rb', line 22
def escape_xml(input)
CGI::escapeHTML(input)
end
|
#hello_world(input) ⇒ Object
6
7
8
|
# File 'lib/stack/filters/standard.rb', line 6
def hello_world(input)
"Hello World!"
end
|
#length(input) ⇒ Object
10
11
12
|
# File 'lib/stack/filters/standard.rb', line 10
def length(input)
input.length
end
|