From: abc Date: 2009-03-15T22:07:41+09:00 Subject: How can I know if a program is running inside irb? Hi, from a certain piece of code, how can I know if it's been run inside irb, or just ruby. I've tried looking in the IRB rdoc, but haven't found any relevant methods. Thanks in advance.