O'Reilly logo

Learning Sinatra by Manoj Sehrawat, Sudeep Agarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Introduction to Ruby

In this chapter, you will learn how to install Ruby and the basic built-in classes. This chapter will cover enough to get you started with Sinatra and make you comfortable with exploring more. This is not a complete guide to Ruby. If you have worked with any OOP language such as C++ or Java, this chapter will be a piece of cake for you.

Installation

Let's get into some action and install Ruby. If you are using Linux, Ruby can be installed using Ruby Version Manager (RVM) either system-wide or for a particular user. It can also be installed from the package manager. Using RVM simplifies managing multiple Ruby versions and gemsets. We will be using RVM to install Ruby for a single user.

On Windows, Ruby can be directly ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required