Module: Normatron::Filters::RemoveFilter
- Extended by:
- Helpers
- Defined in:
- lib/normatron/filters/remove_filter.rb
Overview
Remove the characters that match the given properties.
For additional informations see Normatron::Filter::ClassMethods#keep documentation.
Class Method Summary collapse
-
.call(input, *properties) ⇒ String
Performs input conversion according to filter requirements.
Methods included from Helpers
acronym_regex, acronyms, evaluate_regexp, inflections, mb_send
Class Method Details
.call(input, *properties) ⇒ String
Performs input conversion according to filter requirements.
This method returns the object itself when the first argument is not a String.
37 38 39 |
# File 'lib/normatron/filters/remove_filter.rb', line 37 def self.call(input, *properties) input.kind_of?(String) ? evaluate_regexp(input, :remove, properties) : input end |