Module: R2OAS::Deprecation::InstanceDelegator::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#include(included_module) ⇒ Object

override Module#include



20
21
22
23
# File 'lib/r2-oas/support/deprecation/instance_delegator.rb', line 20

def include(included_module)
  included_module.instance_methods.each { |m| method_added(m) }
  super
end

#method_added(method_name) ⇒ Object



25
26
27
# File 'lib/r2-oas/support/deprecation/instance_delegator.rb', line 25

def method_added(method_name)
  singleton_class.def_delegators(:instance, method_name)
end