From: Brian Candler Date: 2011-04-30T03:19:26+09:00 Subject: Re: calling methods, beginner help Ronnie Aa wrote in post #995728: > With procedures I mean this: > > http://www.ruby-doc.org/core/classes/Proc.html. > > 'Proc' is a abbreviation of procedure isn't it? No, it's a Proc :-) A Proc object can either be a block crystallised into an object, or a lambda. It carries the semantics of either. $ irb --simple-prompt >> def foo(&blk); blk; end => nil >> foo { puts "hello" } => # >> lambda { puts "hello" } => # You probably don't want to concern yourself with the differences, but the gory details are here: http://innig.net/software/ruby/closures-in-ruby.rb -- Posted via http://www.ruby-forum.com/.