Class: Iqvoc::Origin::Filters::WhitespaceReplacer
- Inherits:
-
GenericFilter
- Object
- GenericFilter
- Iqvoc::Origin::Filters::WhitespaceReplacer
- Defined in:
- lib/iqvoc/origin.rb
Instance Method Summary collapse
Methods inherited from GenericFilter
Instance Method Details
#call(obj, str) ⇒ Object
67 68 69 70 71 72 73 |
# File 'lib/iqvoc/origin.rb', line 67 def call(obj, str) str = str.gsub(/\s([a-zA-Z])?/) do $1.to_s.upcase end run(obj, str) end |