1 min read

Categories

  • Uncategorized

Tags

You’re going to need a text editor to write Ruby.  Although there are many options I prefer using a dedicated Ruby IDE such as RubyMine because it comes with debugging and autocomplete.

Both are critical when learning a programming language.

I’m running Xubuntu. Xubuntu comes with a Firefox web-browser. Download the Linux version of RubyMine.

</figure>

Decompress the tar.gz file and open /bin folder. Drag rubymine.sh to the terminal window and run it to install RubyMine.

</figure>

Use the default settings for now, including the keymap scheme and theme. You can use the free 30 day evaluation license.

Setting up version manager SDK

If you’re using a version manager with Ruby, then you have to select it in RubyMine. Go to settings and under languages and frameworks select Ruby SDK and Gems. In my case, I’m using ASDF to run Ruby 2.4.4. Select it.

</figure>

Give your new project a name and create it.

</figure>

Right click on the project folder => new => ruby file

</figure>

Give it a name and you’ll see it generate a file name with a *.rb extension. That’s a ruby file extension.

</figure>

Setting up version manager SDK

If you’re using a version manager with Ruby, then you have to select it in RubyMine. Go to settings and under languages and frameworks select Ruby SDK and Gems. In my case, I’m using ASDF to run Ruby 2.4.4. Select it.

This image has an empty alt attribute; its file name is 2019-06-10_13-59-25.jpg </figure>

You’re ready to type Ruby code in the main window and run it.