Dynamic Evaluation
suggest changeSyntax
eval "source"eval "source", bindingbinding.eval "source"is the same aseval "source", binding
A Proc is not a binding. Pass proc.binding if you need the proc’s scope.
Parameters
| Parameter | Details |
|---|---|
"source" |
Any Ruby source code |
binding |
An instance of the Binding class |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents