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

                                        


                         
                                                     

     
# frozen_string_literal: true

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

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