instance eval

suggest change

Versions

The forms below were written for Ruby 2.2 and 2.3. instance_eval itself is older.

Syntax

Parameters

Parameter Details
string Ruby source code to evaluate.
filename File name to use for error reporting.
lineno Line number to use for error reporting.
block The block of code to evaluate.
obj The receiver is passed to the block as its only argument.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents