Article: understanding Ruby blocks, Procs and methods

Discussion in 'Ruby' started by Eli Bendersky, Apr 18, 2006.

  1. 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:
    http://eli.thegreenplace.net/2006/04/18/understanding-ruby-blocks-procs-and-methods/

    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.

    Eli

    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 down

    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
    there.
    Eli Bendersky, Apr 18, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. matt
    Replies:
    1
    Views:
    245
    George Ogata
    Aug 6, 2004
  2. Mehr, Assaph (Assaph)

    Object#send and blocks/procs

    Mehr, Assaph (Assaph), Sep 27, 2004, in forum: Ruby
    Replies:
    2
    Views:
    113
    George Ogata
    Sep 27, 2004
  3. Eli Bendersky
    Replies:
    2
    Views:
    108
    Eli Bendersky
    Apr 16, 2006
  4. Jay McGavren
    Replies:
    2
    Views:
    91
    Jay McGavren
    Apr 11, 2007
  5. Steven Taylor
    Replies:
    9
    Views:
    240
    Brian Candler
    Apr 27, 2009
Loading...

Share This Page