ITP2 - OOP Tutorials - Classes and Objects II - Class Methods

GoodDog.what_am_i          # => I'm a GoodDog class!

Why do we need a class method for this? This example is a little
contrived, but class methods are where we put functionality that does
not pertain to individual objects. Objects contain state, and if we have
a method that does not need to deal with states, then we can just use a
class method, like our simple example. We'll take a look at a more
useful example in the next section.