3 ms·
> Classes are constants No, classes are objects. The class declaration syntax assigns the class it creates to the constant given as the name, but it's quite p
by dragonwriter 6y ago
> Classes are constants
No, classes are objects.
The class declaration syntax assigns the class it creates to the constant given as the name, but it's quite possible to create a class without assigning it to a constant (e.g., via Class.new).