Marnen Laibow-Koser wrote:

> Not quite.  There's no such class as Lambda.  Read what I said in my 
> first post again.

I begin to understand. I'm reading this :
http://eli.thegreenplace.net/2006/04/18/understanding-ruby-blocks-procs-and-methods/
And it explains it as well.
> 
> In Rails they're occasionally used for callbacks, and in 
> RSpec I often do things like
> lambda {Car.drive}.should_not raise_error
> 
> See http://en.wikipedia.org/wiki/Closure_(computer_science) for more.

I'm reading that wiki page right now ;-)
About that RSpec example..

You are creating "code which calls Car.drive", yes ? Why not just call 
Car.drive ? That is the main bit of thinking I'm having issues with.
-- 
Posted via http://www.ruby-forum.com/.