What Is Ruby For Mac

Are you not sure which Ruby version you are using right now? Wondering how to check it? Say no more. Here are two simple ways to check for it.
In irb
Ruby Basics, Numbers, and Strings. To get started with Ruby, you really only need to install Ruby itself and use a free code editor (not a word processor!). Notepad, Atom, TextWrangler, and others are all good code editor choices. You’ll also commonly use a terminal or console program (free with all the common operating systems). Ruby on Rails, or Rails, is a server-side web application framework written in Ruby under the MIT License. Rails is a model–view–controller (MVC) framework, providing default structures for a database, a web service, and web pages.
Run irb
and type:

From command line

Just type ruby -v
Ruby Woo Matte
In RVM
Are you using RVM?
Run rvm current
and get the answer
In rbenv
Ruby Mac Apples
Are you using rbenv? Just run rbenv version
Using which
Ruby Mac Os
Do you want to know where your ruby
binary is installed? It can also sometimes reveal the version you are using as it is usually part of directory structure. Just run which ruby
.
What Is Ruby On Mac

Using gem env
If you want to know even more about your current ruby setup, there is a command for that as well!
