F. Senault
7/27/2007 9:51:00 AM
Le 27 juillet à 11:41, Ronald Fischer a écrit :
> - the Ruby version (1.8.6) and
You have the RUBY_VERSION constants and a few others :
>> RUBY_VERSION
=> "1.8.6"
>> RUBY_PLATFORM
=> "i386-freebsd6"
>> RUBY_RELEASE_DATE
=> "2007-03-13"
>> RUBY_PATCHLEVEL
=> 0
And the same, without RUBY_.
> - whether it is executed by Ruby or JRuby?
You probably have other constants telling you that. I'd suggest you
inspect the contents of Object.constants to find them.
Fred
--
Your loved one are waiting, break out of your cage
You have the power, give into your rage
Listen to pride now for once he is right (Ayreon, The Human
Listen to reason, let us be your guide Equation, Day 14 : Pride)