From: David Vallner Date: 2006-01-11T13:28:19+09:00 Subject: Re: Use of eval Rich wrote: >I was thinking of adding a simple command console to a Ruby project >I'm working on (something like a domain-specific REPL). Under what >execution environment do the "eval"-ed strings execute, relative to >the execution environment that is calling the eval method? Can >classes be opened using eval? Finally, is there anything like Perl's >Safe module available in Ruby? Thank you. > >-Rich Seagraves > > > You could try and reuse the already present IRB, plain eval-ing lines the user inputs might provide some pitfalls. Just about my US$0.02 David Vallner