Extracting Lambda Source Code


In this post, I’ll show you how to extract the code definition of a Lambda object, using just pure Ruby!

But, first things first! What is a lambda in Ruby? A lambda is an special type of Proc, with some little differences in syntax, behavior and functionality, one of them that could be used as an anonymous function. There are many articles with all the details of what a lambda is and its main differences from a Proc and a block, one of them is this.

Continuar lendo