Class
The class of classes. More accurately speaking, each class has its own unnamed "metaclass", and Class is the class of these metaclasses. This relationship is a little complicated, but it is not especially important to keep in mind while using Ruby.
Compared to modules, classes
can create instances and
cannot perform mix-in using include
Otherwise, nearly all of its capabilities are inherited from Module.
Superclass
Module
Method
new( ... )
Creates a class instance and returns it. This method's arguments, including block arguments, are passed to initialize.
Last updated