Cookies help us deliver our services. By using our services, you agree to our use of cookies.
Learn more
-
-
03:43
03:43
-
-
Method alias in Ruby
- An
alias
is an alternative name for a given method. The alias
is associated to a specific context.
-
-
-
04:06
04:06
-
-
Basic inheritance
- In Ruby, inheritance is represented by the
<
operator. Also, Ruby provides a set of guard when dealing with inheritance.
-
-
-
03:05
03:05
-
-
Messages in Ruby
- In Ruby, a message consists of a name, usually represented by a symbol, and an optional payload.
-
-
-
03:26
03:26
-
-
Pro -
Private methods
- Ruby provides a way to restrict the access to an instance or class method.
In Ruby, the
private
keyword allows you to define a private method.
-
-
-
03:55
03:55
-
-
Class instantiation behind the scene
- In the Object-Oriented Programming (OOP) paradigm, a class is a blueprint when an object is the in-memory representation of this blueprint.
-