Class: Iqvoc::Origin::Filters::SpecialCharReplacer

Inherits:
GenericFilter
  • Object
show all
Defined in:
lib/iqvoc/origin.rb

Instance Method Summary collapse

Methods inherited from GenericFilter

#run

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