Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- conf = {
- :hash_key =>
- {
- 'hash_string' => {
- :hash1 => 'get_me',
- :hash2 => 'get_me',
- }
- }
- }
- puts conf[:hash_key].first #returns Array ?
- puts conf[:hash_key].first[0] #returns string "hash_string"
- puts conf[:hash_key].first[1] #returns hash that i want
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement