Skip to content

Instantly share code, notes, and snippets.

@Nayshins
Created March 14, 2014 02:36
Show Gist options
  • Save Nayshins/9541186 to your computer and use it in GitHub Desktop.
Save Nayshins/9541186 to your computer and use it in GitHub Desktop.
hash = { "C" => [[0,1],[0,3]],
"O" => [[0,2],[1,0]],
"M" => [[1,3], [2,0]],
"E" => [[0,0], [2,2]]
}
#puts hash["C"]
arr = []
hash.each_key { |key|
arr << hash[key]}
a, c, e, d = arr
p a
p b
p c
p d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment