Module: RightSupport::Ruby::EasySingleton

Defined in:
lib/right_support/ruby/easy_singleton.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



45
46
47
48
# File 'lib/right_support/ruby/easy_singleton.rb', line 45

def self.included(base)
  base.__send__(:include, ::Singleton) unless base.ancestors.include?(::Singleton)
  base.__send__(:extend, ClassMethods)
end