aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/reachable.rb
blob: e9cbda52453e926b436d2dacdfeb3df223ad5902 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

require "active_support/core_ext/module/anonymous"
require "active_support/core_ext/string/inflections"

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