Ruby: Fix for Ruby 2.1.1

define_method does not take two symbols as arguments