Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby version from script

There is a RUBY_PATCHLEVEL constant as well. So you can get your version string as

p "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"

--iltempo
 
PREVIOUS NEXT
Tagged: #ruby #version #script
ADD COMMENT
Topic
Name
6+9 =