From: Jeff Date: 2008-10-30T22:41:23+09:00 Subject: Re: Question about case statement and lambdas On Oct 30, 3:22 am, Brian Candler wrote: > David A. Black wrote: > > Expanding on Botp's point about options being changed: > > > The problem is that if options is a Proc the first time you call the > > lambda, it isn't the second time. It's still whatever got assigned to > > it. > > And whilst at first glance it seems that 'options' is actually "just" a > local method argument which drops out of scope when the method returns, > it is of course bound into the environment of the lambda (i.e. the > closure), and persists there. > -- > Posted viahttp://www.ruby-forum.com/. Excellent... thanks for that insight. Jeff purpleworkshops.com