diff options
Diffstat (limited to 'lib/singleton.rb')
-rw-r--r-- | lib/singleton.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/singleton.rb b/lib/singleton.rb index 32be573a78..8d53323ad4 100644 --- a/lib/singleton.rb +++ b/lib/singleton.rb @@ -92,6 +92,8 @@ # p a.strip # => nil # module Singleton + VERSION = "0.1.0" + # Raises a TypeError to prevent cloning. def clone raise TypeError, "can't clone instance of singleton #{self.class}" |