Ruby
Ruby focuses on simplicity and productivity.
What are Getter and Setter methods in Ruby
If you want to either retrieve or set a value of an instance variable from a Ruby class, you need to learn about getters and setters. Learning about attr_accessor is also really useful to help you keep your class clean and tidy.
4 mins
Intro to Ruby Classes
Classes are the basic building block in Object Oriented Programming (OOP). They define the blueprint for creating objects. In this lesson, we will learn everything that we need to start working with Ruby Classes.
6 mins
The safe navigation operator (&.) in Ruby
Ruby's safe operator is used when you don't want your app to throw an exception if a method is called on a nil object.
2 mins
Ruby Symbols vs Strings
Learn about Ruby's symbols and strings - what are the similarities and differences and which of the two is faster
4 mins
The difference between Ruby Public, Private & Protected methods
Ruby, like many other languages, allows you to control the access control of your methods. They can either be public (you can call the from anywhere), private or protected. In Ruby, all methods are public by default, so it's up to you to make them private or protected.
2 mins