Most non-compiled languages have some kind of eval function, which will take a string and execute it as code. The eval method in Ruby accomplishes this, and is rather straightforward.
Comments
No comments yet. Leave a Comment
Most non-compiled languages have some kind of eval function, which will take a string and execute it as code. The eval method in Ruby accomplishes this, and is rather straightforward.
©2012 About.com. All rights reserved.
A part of The New York Times Company.