Ruby Language Dynamic Evaluation

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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


Got any Ruby Language Question?