I was reading about namespaces in Ruby the other day and came across an interesting point where it compared
Since I started writing Ruby, I did not thought about the secrets behind the use of
require when other languages used
Let’s suppose we have a…
As of right now, you are almost a gurú on
Ghost methods, if you followed our previous story , but there are still some nuances worth mentioning.
Let’s first talk about the
Ghost within the Ghost
Ghost within the ghost
method_missing can be a good practice that saves time for a developer, but…
Following my ruby series, here is the next chapter, where I will be diving into Ruby’s method
method_missing and its pros and cons.
In the past story we talked about how everything in Ruby is a constant and
Classes are nothing more than objects. Meaning that we could store a
Class inside a constant, following its behaviour as an object.
We also said that everything in Ruby is a constant, but we can…
The phrase “Like father, like son” would be very appropriate for this story. Ruby, as any OOP language, is based on objects, and those objects, can inherit or be inherited (dramatic pause)
After this dramatic pause, let’s start with a concept well known for everybody, a
Class . One…
Today, I want to start a new series of stories called: “ruby_cool_kid.rb — Meta Programming series”.
As of right now, I am reading a book called “Metaprogramming Ruby 2: Program Like the Ruby Pros” by Paolo Perrotta, where he talks about meta programming in Ruby and its advantages.