Skip to content

Instantly share code, notes, and snippets.

@leejarvis

leejarvis/blah Secret

Created January 2, 2012 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leejarvis/a12d88be6ae9399d6c11 to your computer and use it in GitHub Desktop.
Save leejarvis/a12d88be6ae9399d6c11 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
def csv_string(info)
return unless info && info.respond_to?(:to_hash)
title = info[:title]
# ...
CSV.generate_line([...])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment