Ruby Blocks is something all Ruby developers use everyday. For example, while using the each, times, or upto methods or the countless other Enumerable module methods, we normally pass a block along with the method. For example:
1.upto(5) {|i| puts(i)}
The code included in the brackets {} is