
Ruby block, procs and lambda
Ruby is a language that uses multiple programming paradigms, most commonly object-oriented and functional, and with its functional nature comes the idea of functions. Ruby uses three types of closures, namely blocks, procs, and lambdas.