Stats

22 Contributors: 3
2016-09-11
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Dynamic Evaluation

Download ruby eBook

Syntax

  • eval "source"
  • eval "source", binding
  • eval "source", proc
  • binding.eval "source" # equal to eval "source", binding

Parameters

ParameterDetails
"source"Any Ruby source code
bindingAn instance of Binding class
procAn instance of Proc class

Related Examples