Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > how to obtain Ruby version info from a program code

Reply
Thread Tools

how to obtain Ruby version info from a program code

 
 
Karel Miarka
Guest
Posts: n/a
 
      01-18-2006
Hello,

Is there an API call returning Ruby version on which the code is
running? Eg. the same information which is returned by running "ruby
--version" on command line? I cannot find one.

Thanks,
Karel

--
Posted via http://www.ruby-forum.com/.


 
Reply With Quote
 
 
 
 
Guest
Guest
Posts: n/a
 
      01-18-2006
The constant RUBY_VERSION.

regards,
Jan Friedrich

--
Posted via http://www.ruby-forum.com/.


 
Reply With Quote
 
 
 
 
Karel Miarka
Guest
Posts: n/a
 
      01-18-2006
Guest wrote:
> The constant RUBY_VERSION.
>
> regards,
> Jan Friedrich


Great! Thanks for your fast response

--
Posted via http://www.ruby-forum.com/.


 
Reply With Quote
 
jzakiya@mail.com
Guest
Posts: n/a
 
      01-18-2006
Also just VERSION.

irb(main):001:0> RUBY_VERSION
=> "1.8.4"
irb(main):002:0> VERSION
=> "1.8.4"

 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
obtain info about wireless connection myspacee Wireless Networking 4 08-14-2008 01:35 PM
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] ASP .Net 5 02-09-2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM



Advertisments