From: Daniel Sheppard Date: 2005-12-09T06:05:49+09:00 Subject: Re: Are my metaprogramming underpants showing? ------_=_NextPart_001_01C5FC3A.E97C524E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Given that the code below is functionally equivalent, what's =20 > beneficial about using a lambda expression? It strikes me as a =20 > requirement imposed by using the Functor class more than anything. The class way is definitely the way to go, as it gives you easier flexibi= lity. I was just in a lamdba mood at the time I wrote it and couldn't be = bothered making it into a class. You might want to do this: class Flickr =20 instance_methods.each {|x| remove_method(x) unless /__.*__/ =3D=3D=3D= =20x } end To prevent any conflict between flickr methods and ruby object methods. #########################################################################= ############ This email has been scanned by MailMarshal, an email content filter. #########################################################################= ############ ------_=_NextPart_001_01C5FC3A.E97C524E--