RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

How to properly check for your Ruby interpreter, version and OS

I wrote a little blog post that shows the implementation of three helpful "magical" constants:
* OS: returns the current operating system
* RubyEngine: returns the current Ruby implementation
* RubyVersion: returns the current Ruby version

Comments

Post a Comment

Note: If you are a registered user, you can log in to populate these fields.

You may use ONLY these HTML tags to format your comment:

<a href="" title=""> <b> <blockquote> <code> <em> <i> <strong>

Do NOT use <p> tags. Just use newlines :-)

e
n
c
o
F bum
d
e
i
s
a