QP School
Getting the currently installed Ruby version - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: Ruby 3 Tutorials, exercises and examples (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=17)
+--- Thread: Getting the currently installed Ruby version (/showthread.php?tid=2494)



Getting the currently installed Ruby version - Qomplainerz - 02-26-2021

To get the currently installed Ruby version you'll just need the following code:


Quote:puts "Ruby version: " +RUBY_VERSION