does anyone know *why* Kernel module exist? why isn't the methods just defined directly on Object?

@judofyr I always figured it was a place to put all the not-really-OO stuff that doesn't really belong in Object and subclasses (like convenient IO and running subprocesses and other procedural helpers)

@james but even methods like are defined in Kernel:

>> "".method(:instance_variables).owner
=> Kernel

@judofyr Perhaps it's so that BasicObject can be kept clean?

Sign in to participate in the conversation

A Mastodon instance for Rubyists & friends