Fix scoping problem in Ruby 1.9.2
Merge pull request #10 from jgn/jn-fix_odd_scoping

Fix scoping problem in Ruby 1.9.2