Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > require 'singleton'
- => true
- > class A; include Singleton; end
- => A
- > one = A.instance
- => #<A:0x8457290>
- > class A; include Singleton; end
- => A
- > two = A.instance
- => #<A:0x844bd14>
- > one == two
- => false
Add Comment
Please, Sign In to add comment