Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
passing Proc as a parameter
Can Ceran
12/13/2006
Hi,
I'm a new user of Ruby, and trying to learn its features. But I have a
difficulty to understand Proc class.
What will be the referencing environment when we pass Proc as a
parameter?
and other question, how can we pass Proc as a parameter, can you give an
example of it?
Thanks for your help.
--
Posted via
http://www.ruby-...
.
3 Answers
Giles Bowkett
12/13/2006 12:51:00 AM
0
Pretty good explanation at this blog:
http://eli.thegreenplace.net/2006/04/18/understanding-ruby-blocks-procs-a...
On 12/12/06, Can Ceran <ccermikli@gmail.com> wrote:
> Hi,
> I'm a new user of Ruby, and trying to learn its features. But I have a
> difficulty to understand Proc class.
> What will be the referencing environment when we pass Proc as a
> parameter?
> and other question, how can we pass Proc as a parameter, can you give an
> example of it?
> Thanks for your help.
>
> --
> Posted via
http://www.ruby-...
.
>
>
--
Giles Bowkett
http://www.gilesg...
http://gilesbowkett.bl...
http://gilesgoatboy.bl...
Can Ceran
12/13/2006 1:18:00 AM
0
Thanks for the link, it really helped me to understand the topic.
--
Posted via
http://www.ruby-...
.
James Gray
12/13/2006 1:26:00 AM
0
On Dec 12, 2006, at 6:00 PM, Can Ceran wrote:
> Hi,
> I'm a new user of Ruby, and trying to learn its features. But I have a
> difficulty to understand Proc class.
> What will be the referencing environment when we pass Proc as a
> parameter?
> and other question, how can we pass Proc as a parameter, can you
> give an
> example of it?
This article might be worth a read:
http://blog.grayproductions.net/articles/2006/01/05/code-as-a...
James Edward Gray II
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
passing Proc as a parameter
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