proc, lambdas and blocks
Blocks
Blocks in ruby are anonymous functions that can be passed into methods.
Calling blocks
Blocks can be called using the yield keyword or by calling .call, the latter is called an explicit block while the former is called an implicit block.
expl...
codingwithaglassofmilk.hashnode.dev3 min read