Module: Normatron::Filters::StripFilter
- Extended by:
- Helpers
- Defined in:
- lib/normatron/filters/strip_filter.rb
Class Method Summary collapse
-
.evaluate(input, option = :LR) ⇒ String
Remove traling and/or leading spaces from the string.
Methods included from Helpers
acronym_regex, acronyms, evaluate_regexp, evaluate_strip, inflections, mb_send
Class Method Details
.evaluate(input, option = :LR) ⇒ String
Remove traling and/or leading spaces from the string.
28 29 30 |
# File 'lib/normatron/filters/strip_filter.rb', line 28 def self.evaluate(input, option=:LR) input.kind_of?(String) ? evaluate_strip(input, option) : input end |