In this post, I will explain the basics of how a method call works in Ruby. I’ll assume that readers have some familiarity with Ruby language.
The post is in two parts. The first part covers what you need to know about typical Ruby program. It covers: ancestors hierarchy, class inheritance, and module include
and prepend
.
The second part digs into tools that are used less often. It covers: singleton method, singleton class, and class methods.