Refactor on_ruby helper to handle Ruby 2.0