Module: Normatron::Filters::RemoveFilter
- Extended by:
- Helpers
- Defined in:
- lib/normatron/filters/remove_filter.rb
Class Method Summary collapse
-
.evaluate(input, *properties) ⇒ String
Remove the characters that match the given properties.
Methods included from Helpers
acronym_regex, acronyms, evaluate_regexp, inflections, mb_send
Class Method Details
.evaluate(input, *properties) ⇒ String
TODO:
Raise exception for empty properties
Remove the characters that match the given properties.
For additional informations see Normatron::Filter::ClassMethods#keep documentation.
32 33 34 |
# File 'lib/normatron/filters/remove_filter.rb', line 32 def self.evaluate(input, *properties) input.kind_of?(String) ? evaluate_regexp(input, :remove, properties) : input end |