0
How to spy on a Hash in Ruby
Let's say you're dealing with a large Rails codebase and you've got a Hash stored in a global variable or a constant and you want to know who is changing that Hash. Here's a contrived example: IMPORTANT_STUFF = { :password => "too many secrets" } def
- 15 00 comments [0]
Feb 24 2010 11:09 PM

Shuffle


































