Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 28th, 2013  |  syntax: Ruby  |  size: 0.40 KB  |  views: 45  |  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. conf = {
  2.         :hash_key =>
  3.                 {
  4.                         'hash_string' => {
  5.                                 :hash1 => 'get_me',
  6.                                 :hash2 => 'get_me',
  7.                         }
  8.                 }
  9. }
  10.  
  11. puts conf[:hash_key].first #returns Array ?
  12. puts conf[:hash_key].first[0] #returns string "hash_string"
  13. puts conf[:hash_key].first[1] #returns hash that i want
clone this paste RAW Paste Data