Skip to content

Instantly share code, notes, and snippets.

@jtoy
Created November 21, 2010 18:38
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 jtoy/708993 to your computer and use it in GitHub Desktop.
Save jtoy/708993 to your computer and use it in GitHub Desktop.
extract_data = Proc.new {|x| "path/#{x['description'].gsub(/[\r\n]+/," ")}\n" }
json['lists'].each do |x|
s = extract_data(x).call
puts s
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment