Context Binding in Ruby – Mehdi Farsi – Medium

1lzJ7dwlUuRoglhbhy6I69Q.png

The Binding class An instance of the Binding class is able to encapsulate the execution context of the receiver object. The execution context is the entire environment needed for a given piece of code to be executed. A code without execution context cannot be properly executed. The execution context contains the variables, the methods and self for a given scope. Actually, the execution context is a bit more complicated than this. Anyway, let’s keep it simple as it’s not the main topic of this article. I’ll detail this key-concept in another article. The Binding class…

Related TECH News