Module: Normatron::Filters::DumpFilter
- Defined in:
- lib/normatron/filters/dump_filter.rb
Overview
Creates a literal string representation with all nonprinting characters replaced by \\n
notation and all
special characters escaped.
Class Method Summary collapse
-
.call(input) ⇒ String
Performs input conversion according to filter requirements.
Class Method Details
.call(input) ⇒ String
Performs input conversion according to filter requirements.
This method returns the object itself when the first argument is not a String.
28 29 30 |
# File 'lib/normatron/filters/dump_filter.rb', line 28 def self.call(input) input.kind_of?(String) ? input.dump : input end |