[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Request for Block local methods, and Proc syntax

ara.t.howard

9/4/2008 6:22:00 PM


On Aug 31, 2008, at 8:35 PM, Patrick Li wrote:

>
> 1) Block local methods:
>
> def myMethod
> def myLocalMethod #<-- myLocalMethod only visible within myMethod()
> end
> end
>
> This doesn't look like much at first. But it's extremely useful for
> meta-programming. Right now, people are using instance_eval to get
> around this, which creates some scoping problems.



http://drawohara.com/post/48758159/ruby-temporary-method...





a @ http://codeforp...
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama