3 ms·
> I think anyone who uses Ruby regularly knows that `everything is an object` is the defaul “Default” implies that it is implicitly the case if no alternative
by dragonwriter 2y ago
> I think anyone who uses Ruby regularly knows that `everything is an object` is the defaul
“Default” implies that it is implicitly the case if no alternative is explicitly selected, but such alternatives exist. In Ruby “everything is an object” (or, at least, “every callable method is in a class and can only be called in context of an object”) is more immutable truth than default.
> and that `Object` is the unstated parent for anything not specified
Actually, an anonymous top-level instance of Object is the default object to which things apply; Object itself is an Object (and more specifically a Class), but it is not the default object, it is the class of the default object.