how to obtain Ruby version info from a program code

Discussion in 'Ruby' started by Karel Miarka, Jan 18, 2006.

  1. Karel Miarka

    Karel Miarka Guest

    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/.
    Karel Miarka, Jan 18, 2006
    #1
    1. Advertising

  2. Karel Miarka

    Guest Guest

    Guest, Jan 18, 2006
    #2
    1. Advertising

  3. Karel Miarka

    Karel Miarka Guest

    Guest wrote:
    > The constant RUBY_VERSION.
    >
    > regards,
    > Jan Friedrich


    Great! Thanks for your fast response :)

    --
    Posted via http://www.ruby-forum.com/.
    Karel Miarka, Jan 18, 2006
    #3
  4. Karel Miarka

    Guest

    Also just VERSION.

    irb(main):001:0> RUBY_VERSION
    => "1.8.4"
    irb(main):002:0> VERSION
    => "1.8.4"
    , Jan 18, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. V Green
    Replies:
    0
    Views:
    842
    V Green
    Feb 5, 2008
  2. PA Bear [MS MVP]
    Replies:
    0
    Views:
    956
    PA Bear [MS MVP]
    Feb 5, 2008
  3. MowGreen [MVP]
    Replies:
    5
    Views:
    2,017
    PA Bear [MS MVP]
    Feb 9, 2008
  4. Bill D.
    Replies:
    1
    Views:
    854
    Steven Cheng
    Sep 11, 2009
  5. Lain
    Replies:
    0
    Views:
    166
Loading...

Share This Page