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
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
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?
Object::VERSION
$ 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.
On Tue, 6 Jan 2004 07:21:41 +0900 oinkoink+unet@rexx.com (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?
–
Ryan Pavlik rpav@mephle.com
“Oh for the love of evil, not this again.” - 8BT
oinkoink+unet@rexx.com (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
Matt Armstrong matt@lickey.com wrote in message news:87hdzahsu2.fsf@naz.lickey.com…
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).