Method: String#map_number_with_index
- Defined in:
- lib/filter_rename/utils.rb
#map_number_with_index ⇒ Object
116 117 118 119 120 |
# File 'lib/filter_rename/utils.rb', line 116 def map_number_with_index self.gsub(/\d+/).with_index do |num, i| yield num, i end end |