When you use define_method, the method you define cannot accept a block .
Its pretty well known that due to a lack of argument blocks in Ruby 1.8, Class # define_method cannot define methods that accept blocks.
def x *args, █ end
To define a method, a block is required:
"def #{prefix}#{method}(*args, &block)"
So define_method cannot be used.
Andrew Grimm
source share