RubyTapas Episode 13: Singleton Objects

Sometimes one instance is all you need.

httpv://youtube.com/watch?v=J6fgEFBeepY

[boilerplate bypath=”rubytapas-sample”]

3 comments

    1. The Singleton module is about finding a way to force a class to only permit a single instance. The whole point of this episode is to say, why start with a class and then try to lock it down to once instance? Why not just start with an instance?

      The Singleton Pattern (and Ruby library) is kind of orthogonal, I talk about it more in another episode.

Leave a Reply

Your email address will not be published. Required fields are marked *

Success message!
Warning message!
Error message!