type a command to check the version of Ruby (this works on Unix/Linux and Windows): : Ruby Commandline « Language Basics « Ruby






type a command to check the version of Ruby (this works on Unix/Linux and Windows):


$ ruby -v


# or:

$ ruby --version

 








Related examples in the same category

1.create a basic Ruby script called debugtest.rb:
2.Running the Ruby Interpreter