Ruby Blocks

What is a block? A block allows you to pass another function to a function (method) as an argument. A block can only be passed in as a method argument. A block is a nameless function. Lambda method The lambda method is defined in Kernel module and returns a Proc object. A block can be […]