Write Ruby program to get ruby version with patch number.
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
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Ruby Code:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer