Sha256: e94a7e0affd2f004e24ff9cbe9571ceaf4c0c9ed0e61b412d9cfccf3967fa33f
Contents?: true
Size: 326 Bytes
Versions: 30
Compression:
Stored size: 326 Bytes
Contents
require 'singleton' class <<Singleton def included_with_reset(klass) included_without_reset(klass) class <<klass def reset_instance Singleton.send :__init__, self self end end end alias_method :included_without_reset, :included alias_method :included, :included_with_reset end
Version data entries
30 entries across 30 versions & 3 rubygems