From: Stefano Crocco Date: 2007-09-20T21:49:33+09:00 Subject: Re: how to print Ruby's version from within the program Alle gioved狸 20 settembre 2007, SpringFlowers AutumnMoon ha scritto: > Is there a way to print the Ruby version from within a Ruby program? > > I know i can use ruby -v at the command line, but what if it is inside > of the code and i want to print it out. > > this is such as when in TextMate, i want the program to show whether it > is running under Ruby 1.8.2 or 1.8.6 puts RUBY_VERSION Stefano