From: Nathaniel Talbott Date: 2000-12-29T01:26:42+09:00 Subject: [ruby-talk:8179] Re: Method as block to method > |I find myself wanting to pass a method as the block to > another method on a > |fairly regular basis, and I don't really like how the code turns out. > |Currently it looks like this: > | > | result.addFaultListener(self, &(method(:addFault).to_proc)) > > How about the following? > > result.addFaultListener(self, &method(:addFault)) > > It's slightly better, I think. > > matz. It's much better, and exactly what I was looking for. Thanks matz. Nathaniel <:((>< + - - + - - | RoleModel Software, Inc. & | EQUIP VI | The XP Software Studio(TM) |