Libraries and Class Syntax
So far, we’ve only worked with Ruby and its core components without the advantage of other libraries that are available in Ruby. Additionally, we’ve only taken a partial peek at Ruby objects and classes. In this chapter, we will take a test drive with you to learn about Ruby libraries (gems) and how we can take advantage of the Gemfile to do so. Lastly, we’ll also learn the basics of class syntax to help us move toward more advanced tools, such as Ruby on Rails.
With that in mind, in this chapter, we will cover the following topics:
- Let’s get ready to bundle!!!
- Gemfile versus
composer.json
- Integrating libraries into your code in Ruby
- Declaring classes in Ruby
- Objects in Ruby
- Inheritance in Ruby