Advertisement
diogogmt

Untitled

Apr 15th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Options = Hash.new
  2. Options['args'] = Hash.new
  3. Options['args']['id'] = nil
  4.  
  5.  
  6. MoreOptions = Hash.new
  7. MoreOptions['args'] = Hash.new
  8. MoreOptions['args']['id'] = Options['args']['id']
  9.  
  10.  
  11. Options['args']['id'] = 12345
  12.  
  13. puts MoreOptions['args']['id']
  14. # expect to print 12345 but instead prints nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement