Refactor on_ruby helper to handle Ruby 2.0
Merge pull request #200 from infertux/on_ruby

Refactor on_ruby helper to handle Ruby 2.0