Advertisement
Guest User

Untitled

a guest
Aug 28th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.40 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement