aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/reachable.rb
blob: 790a3cc561d7d3e83f956075e40692b28083066d (plain) (tree)
1
2
3
4
5
6
7
8
9
                             
 

                                        


                         
                                                     
     
                       
   
# frozen_string_literal: true

require_relative "anonymous"
require_relative "../string/inflections"

class Module
  def reachable? #:nodoc:
    !anonymous? && name.safe_constantize.equal?(self)
  end
  deprecate :reachable?
end