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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Request for Block local methods, and Proc syntax
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password