From: Chris Date: 2007-08-19T02:25:22+09:00 Subject: Re: Execute ruby commands in a program Um, this sounds like 'irb'. Depending on what OS you're on and how you installed ruby, you should just be able to type 'irb' at the command-line. That sounds like what you're after. On Aug 18, 11:16 am, Haze Noc wrote: > Ok so lets say i have a program, And within the program i call a command > such as Ruby: > > Is there anyway to be able to run live ruby code and print the answers > (i dont really know how to put it) so like.. > > Ruby: name = 'john'; puts "Hi" if name == 'john' > Program: Hi > > Sounds weird i know, But if Anyone out there understands me that would > be great.. > > I want to stay away from shell one liners like ruby -e "code here" > > Thanks in advance > -- > Posted viahttp://www.ruby-forum.com/.