[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Ruby syntax question: instance.method(args) { more_stuff }

Nic Daniau

5/1/2007 10:32:00 AM

Thanks, yes, I know about iterators and their use of blocks. But this
isn't one. And that doesn't tell me why it uses self.quality and how I
can inject my own value as @my_object_quality.

-----Original Message-----
From: Harry [mailto:list.push@gmail.com]
Sent: 01 May 2007 11:26
To: ruby-talk ML
Subject: Re: Ruby syntax question: instance.method(args) { more_stuff }


On 5/1/07, Nic Daniau <Nic.Daniau@xchanging.com> wrote:
> how can I
> make my own method accept blocks too?
>
>

Here is one explanation.

http://www.rubycentral.com/book/tut_containe...

Harry

--
http://www.kakueki.com/ruby...
A Look into Japanese Ruby List in English