Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.17 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. {'AT1' => [:fu, :bar], 'AT2' => [:fu]}.to_a.each_slice(1) do |i|
  2.   puts i.inspect
  3. end
  4.  
  5. # result
  6.  
  7. [["AT1", [:fu, :bar]]]
  8. [["AT2", [:fu]]]
  9.  
  10. # how can I get the hashes there?