Skip to content

Instantly share code, notes, and snippets.

@covard
Created April 3, 2013 18:41
Show Gist options
  • Save covard/5303967 to your computer and use it in GitHub Desktop.
Save covard/5303967 to your computer and use it in GitHub Desktop.
How to get headers using roo gem
def self.get_headers(workbook)
headers = Hash.new
workbook.row(1).each_with_index { |header,i| headers[header] = i }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment