# File lib/faster_csv.rb, line 274 def index( header, minimum_index = 0 ) # find the pair index = headers[minimum_index..-1].index(header) # return the index at the right offset, if we found one index.nil? ? nil : index + minimum_index end