From: matz@... (Yukihiro Matsumoto) Date: 2000-11-17T23:36:37+09:00 Subject: [ruby-talk:6416] Re: clas << a & Pascal's with do...end Hi, In message "[ruby-talk:6412] clas << a & Pascal's with do...end" on 00/11/17, Hugh Sasse Staff Elec Eng writes: |I was thinking that when a lot of work must be done on an object |it would be nice to alter the search path for methods without a |receiver. | | a.do_this | a.do_that | a.do_the_other How about the following? a.instance_eval do do_this do_that do_the_other end `instance_eval' swaps the current receiver within the block. Maybe aliasing to the proper name would help comprehension. matz.