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" }
=> #<Proc:0x00007fdbc6eceba0@(irb):2>

>> lambda { puts "hello" }
=> #<Proc:0x00007fdbc6ec4f10@(irb):3>

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/.