Dynamic Evaluation
suggest changeSyntax
- eval “source”
- eval “source”, binding
- eval “source”, proc
- binding.eval “source” # equal to
eval "source", binding
Parameters
Parameter | Details |
|———–|———| | "source" | Any Ruby source code | | binding | An instance of Binding class | | proc | An instance of Proc class |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents