code_junkie

How do I create a Class using the Singleton Design Pattern in Ruby?

Nov 10th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. class Clazz include Singletonend
  2.  
  3. require 'singleton'class Example include Singletonend
Add Comment
Please, Sign In to add comment