Module: Normatron::Filters::UpcaseFilter
- Extended by:
- Helpers
- Defined in:
- lib/normatron/filters/upcase_filter.rb
Overview
Uppercase all characters.
Class Method Summary collapse
-
.call(input) ⇒ 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) ⇒ 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/upcase_filter.rb', line 30 def self.call(input) input.kind_of?(String) ? mb_send(:upcase, input) : input end |