Ruby Blocks

Ruby Code blocks (called closures in other languages) are definitely one of the coolest features of Ruby and are chunks of code between braces or between do- end that you can associate with method invocations, almost as if they were parameters.


About

Christopher is a Software Engineer, Cisco Certified Network Associate and freelance Web Designer / Programmer based in the Philippines.

Categories