News for hackers. Stuff that matters.
Re:The GitHub Styleguide by martingordon on Friday April 06, 2012 @12:08AM (#3805958)

  Use def self.method to define singleton methods.
  ...
  # Also possible and convenient when you
  # have to define many singleton methods.
  class << self
I would argue against using "class << self" especially when you have many singleton methods. If the class is large enough, it's easy to miss the "class << self" and incorrectly read a class method as an instance method.
Re:The GitHub Styleguide by arthurschreiber on Friday April 06, 2012 @06:25AM (#3806603)
Usually you will have another level of indentation, so class methods shouldn't be that easy to mistake for instance methods.