Module: R2OAS::Deprecation::InstanceDelegator

Included in:
R2OAS::Deprecation
Defined in:
lib/r2-oas/support/deprecation/instance_delegator.rb

Defined Under Namespace

Modules: ClassMethods, OverrideDelegators

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

MEMO: base must be singleton class



11
12
13
14
15
16
# File 'lib/r2-oas/support/deprecation/instance_delegator.rb', line 11

def self.included(base)
  base.extend(ClassMethods)
  base.singleton_class.extend(Forwardable)
  base.singleton_class.prepend(OverrideDelegators)
  base.public_class_method :new
end