Class: Iqvoc::Origin::Filters::LeadingNumberHandler
- Inherits:
-
GenericFilter
- Object
- GenericFilter
- Iqvoc::Origin::Filters::LeadingNumberHandler
- Defined in:
- lib/iqvoc/origin.rb
Instance Method Summary collapse
Methods inherited from GenericFilter
Instance Method Details
#call(obj, str) ⇒ Object
87 88 89 90 91 92 93 |
# File 'lib/iqvoc/origin.rb', line 87 def call(obj, str) str = str.gsub(/^[0-9].*$/) do |match| "_#{match}" end run(obj, str) end |