Ruby: extend self

It is a convenient way to make instance methods into class methods. But you can also use it as a more efficient singleton.

Leave a Comment