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
15 16 17 18 |
# File 'lib/active_support/deprecation/instance_delegator.rb', line 15 def include(included_module) included_module.instance_methods.each { |m| method_added(m) } super end |
#method_added(method_name) ⇒ Object
20 21 22 |
# File 'lib/active_support/deprecation/instance_delegator.rb', line 20 def method_added(method_name) singleton_class.delegate(method_name, to: :instance) end |