Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Kernel::VERSION

Reply
Thread Tools

Kernel::VERSION

 
 
Bret Jolly
Guest
Posts: n/a
 
      01-05-2004
There used to be a constant of this name, which I was using
in programs to figure out which version of Ruby the user had.
It seems to be gone in Ruby version 1.8.1. What should I
use instead?

Regards, Bret
 
Reply With Quote
 
 
 
 
Ryan Pavlik
Guest
Posts: n/a
 
      01-05-2004
On Tue, 6 Jan 2004 07:21:41 +0900
oinkoink+ (Bret Jolly) wrote:

> There used to be a constant of this name, which I was using
> in programs to figure out which version of Ruby the user had.
> It seems to be gone in Ruby version 1.8.1. What should I
> use instead?


$ irb
irb(main):001:0> VERSION
=> "1.8.1"
irb(main):002:0> Kernel::VERSION
NameError: uninitialized constant Kernel::VERSION
from (irb):2

Looks like it's just not Kernel::VERSION.

--
Ryan Pavlik <>

"Oh for the love of evil, not this again." - 8BT


 
Reply With Quote
 
 
 
 
Matt Armstrong
Guest
Posts: n/a
 
      01-05-2004
oinkoink+ (Bret Jolly) writes:

> There used to be a constant of this name, which I was using
> in programs to figure out which version of Ruby the user had.
> It seems to be gone in Ruby version 1.8.1. What should I
> use instead?


RUBY_VERSION works too.


--
matt

 
Reply With Quote
 
Bret Jolly
Guest
Posts: n/a
 
      01-06-2004
Matt Armstrong <> wrote in message news:<>...

> RUBY_VERSION works too.


Thanks. RUBY_VERSION looks good and works as early
as ruby 1.6.4 (the earliest version that builds on my
machine).
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57