Hacker News new | ask | show | jobs
by dragonwriter 2034 days 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).