Mega Code Archive

 
Categories / Ruby / Development
 

Evaluation with variable

x = 1 eval "x + 1"  # => 2