return "kinda small"
class << self
Strawberry.color # -> "red"
Strawberry.size # -> "kinda small"
Strawberry.shape # -> "strawberry-ish"
Note the three different constructions: ClassName.method_name and self.method_name are essentially the same – outside of a method definition in a class block, self refers to the class itself. The latter is preferred, as it makes changing the name of the class much easier. The last construction, class << self, puts us in the context of the class’s “meta-class" (sometimes called the “eigenclass")