Module: ActiveSupport::Deprecation::InstanceDelegator::ClassMethods
- Defined in:
- lib/active_support/deprecation/instance_delegator.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#include(included_module) ⇒ Object
14 15 16 17 |
# File 'lib/active_support/deprecation/instance_delegator.rb', line 14 def include(included_module) included_module.instance_methods.each { |m| method_added(m) } super end |
#method_added(method_name) ⇒ Object
19 20 21 |
# File 'lib/active_support/deprecation/instance_delegator.rb', line 19 def method_added(method_name) singleton_class.delegate(method_name, to: :instance) end |