Forum: Ruby Article: Understanding Ruby blocks, Procs and methods

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Eli B. (Guest)
on 2006-04-18 10:37
Hi all,

Finding myself utterly confused by the various approaches Ruby has to
blocks of code, I did some research which resulted in an article:
"Understanding Ruby blocks, Procs and methods" which I posted here:

It is aimed mostly to newcomers to Ruby, especially programmers coming
from other languages like Perl and Lisp.

I hope it will be useful, and will gladly fix any mistakes - so feel
free to comment.


P.S: I posted this on both the comp.lang.ruby group and the Ruby mailing
list (via ruby-forum) because the gateway between the two seems to be

P.P.S: I'll be glad to post the article on one of the Ruby Wikis, if
there's demand for that, just tell me to which one and how to post
This topic is locked and can not be replied to.