Skip to content

Instantly share code, notes, and snippets.

@need4spd
Created November 28, 2012 11:02
Show Gist options
  • Save need4spd/4160524 to your computer and use it in GitHub Desktop.
Save need4spd/4160524 to your computer and use it in GitHub Desktop.
ruby hash
rule = {"1"=>2, "2"=>3, "3"=>5, "4"=>7, "5"=>11, "6"=>13, "7"=>17}
rule.each do |k, v|
puts "#{k}, #{v}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment