Proc (Ruby)
A Proc is a block turned into an object you can store in a variable, pass around, and call later with .call. Unlike a block, a Proc is a first-class value.
A Proc is a block turned into an object you can store in a variable, pass around, and call later with .call. Unlike a block, a Proc is a first-class value.