Class: Iqvoc::Origin::Filters::SpecialCharReplacer
- Inherits:
-
GenericFilter
- Object
- GenericFilter
- Iqvoc::Origin::Filters::SpecialCharReplacer
- Defined in:
- lib/iqvoc/origin.rb
Instance Method Summary collapse
Methods inherited from GenericFilter
Instance Method Details
#call(obj, str) ⇒ Object
77 78 79 80 81 82 83 |
# File 'lib/iqvoc/origin.rb', line 77 def call(obj, str) str = str.gsub(/[(\[:]/, "--"). gsub(/[)\]'""]/, ""). gsub(/[,\.\/&;]/, '-') run(obj, str) end |