I noticed that the code in the rails framework is using the following convention all over the place:
class SomeClass
class << self
def some function
end
end
end
rather than
class SomeClass
end
def SomeClass.function
end
and
class SomeClass
def self.somefunction
end
end
What is the reason for this design choice? They all seem to accomplish them same thing