Name

Binding — Encapsulated execution context class

Synopsis

An object encapsulating the execution context (variables, methods, self, blocks, etc.) at some place in the code. Created using the built-in function binding. Used as the second argument of the built-in function eval. See eval in the previous section.

Get Ruby in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.