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

Follow

@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

Sign in to participate in the conversation
Ruby.social

A Mastodon instance for Rubyists & friends