Class: ActiveSupport::Deprecation::DeprecatedConstantProxy

Inherits:
DeprecationProxy show all
Defined in:
lib/active_support/deprecation.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from DeprecationProxy

#inspect, new

Constructor Details

#initialize(old_const, new_const) ⇒ DeprecatedConstantProxy

Returns a new instance of DeprecatedConstantProxy.



181
182
183
184
# File 'lib/active_support/deprecation.rb', line 181

def initialize(old_const, new_const)
  @old_const = old_const
  @new_const = new_const
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveSupport::Deprecation::DeprecationProxy

Instance Method Details

#classObject



186
187
188
# File 'lib/active_support/deprecation.rb', line 186

def class
  target.class
end