The best way to understand how Module#prepend works is to figure out method lookup process in Ruby.

If it's a simple inheritance and method is present in parent class but not in a main class:

Ruby is not a strong typed programming language, so methods can accept arguments of any type. But sometimes we want to make sure that value we accept is an Array.

I've seen many times that developers do something like that:

1 2 3 5 Next →