Comment by jfabre
Modules (mixins) are objects, classes are also objects (of type Class).
The Kernel module is included in the Object class, which means its methods are available to every Ruby object and can be accessed from virtually any scope, including the top-level (global) context where self is an instance of Object called "main."