I've seen some other threads on this subject, but none that quite
answered my question. I'm trying to pass a variable number of
arguments and a block to a class method from within an instance method.
In Ruby it looks like this:
# 'self' is a string
def my_method(*args, &block)
IO.foreach(self, *args, &block)
end
In C, I was trying something like this:
static VALUE my_method(int argc, VALUE* argv, VALUE self){
VALUE rbSep, rbBlock;
rb_scan_args(argc, argv, "01&", &rbSep, &rbBlock);