In Ruby, Proc objects are blocks of code that have been bound to a set of local variables. Once bound, the code may be called in different contexts and still access those variables.
In Ruby, a Proc (short for procedure) is a block of code, bound to a variable. As is always the way in Ruby, a Proc is an object, and so can be created with the new method, it is generally preferable to use the lambda method.