module FindAllIndicesRefinement
@private
Public Instance Methods
find_all_indices(elem)
click to toggle source
# File lib/robust_excel_ole/general.rb, line 65 def find_all_indices elem elem = elem.encode('utf-8') if elem.respond_to?(:gsub) found, index, result = -1, -1, [] while found found = self[index+1..-1].index(elem) if found index = index + found + 1 result << index end end result end