What is a singleton class in Ruby?
What are singleton classes in Ruby? Why do we need them? Or rather what (language design) problem do they solve? Side note: singleton classes are also known as meta classes or eigen classes. In case you've heard those terms. To get at the motivation for singleton classes in Ruby, first…