Module: Normatron::Filters::SquishFilter
- Defined in:
- lib/normatron/filters/squish_filter.rb
Overview
Strip input, remove line-breaks and multiple spaces.
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.
30 31 32 |
# File 'lib/normatron/filters/squish_filter.rb', line 30 def self.call(input) input.kind_of?(String) ? input.squish : input end |