X-No-archive: yes

I'm a new ruby user. I have the Ruby Way book.

My question is, in what case would you use

class TheClass
  class << self
    def foo

Couldn't you just say

class TheClass
  def foo

?