From: nobu.nokada@... Date: 2005-09-24T12:36:48+09:00 Subject: Re: Implementing method_missing in C and blocks Hi, At Sat, 24 Sep 2005 12:25:55 +0900, John Lam wrote in [ruby-talk:157383]: > Now, you could provide a specific implementation of method_missing to > "capture" the block in the parameter b, as in this example: > def method_missing(name, &b) ... static VALUE method_missing(int argc, VALUE *argv, VALUE self) { VALUE block = rb_block_given_p() ? rb_block_proc() : Qnil; ... } -- Nobu Nakada