Q:

Write Ruby program to get ruby version with patch number

0

Write Ruby program to get ruby version with patch number.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Ruby Code:


puts "Ruby Version: "+RUBY_VERSION
puts "Ruby Patch Level: "+RUBY_PATCHLEVEL.to_s
 

Output:

Ruby Version: 2.4.2
Ruby Patch Level: 198

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now