Module: Normatron::Filters::DasherizeFilter
- Defined in:
- lib/normatron/filters/dasherize_filter.rb
Overview
Replaces all underscores with dashes.
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.
26 27 28 |
# File 'lib/normatron/filters/dasherize_filter.rb', line 26 def self.call(input) input.kind_of?(String) ? input.dasherize : input end |