Class Methods In Ruby: a Thorough Review & Why I Define Them Using class << self
Ruby, being Ruby, has several ways to define class method. Sometimes we just go with whatever the project style guide outlines and call it a day. This post explains the reason why class << self is better from author’s point of view.
Appears in lists (1)