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