QP School
Getting the currently installed Ruby patch level - 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 patch level (/showthread.php?tid=2495)



Getting the currently installed Ruby patch level - Qomplainerz - 02-26-2021

To get the currently installed patch level you just need the following code:


Quote:puts "Ruby patch level: "+RUBY_PATCHLEVEL