Ruby: extend self - Stack Overflow
It is a convenient way to make instance methods into class methods. But you can also use it as a more efficient singleton.
It is a convenient way to make instance methods into class methods. But you can also use it as a more efficient singleton.