From: Eric Hodel Date: 2004-04-05T13:37:57-07:00 Subject: Re: define_method and blocks --UFMLoheMaWcIEZAi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Florian G. Pflug (fgp@phlo.org) wrote: > Hi >=20 > I'm trying to add a method that receives a block as an argument via > define_method - but none of the following versions work. [snip] > Is it possible to define methods that accept blocks as parameters using > define_method()? I believe that both procs and blocks use the block from the scope in which they are defined, making it impossible using define_method. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --UFMLoheMaWcIEZAi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFAccOlMypVHHlsnwQRAg+CAKDTs29+l34Y8TAgTJh+2jc4E3zg+gCfW35D J3ikWvFnA8g2m7HxUFBuKTg= =7VD7 -----END PGP SIGNATURE----- --UFMLoheMaWcIEZAi--