aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/reachable.rb
blob: 0f78999634568aae38373d065ccaf441bd31b587 (plain) (blame)
1
2
3
4
5
6
7
8
require_relative "anonymous"
require_relative "../string/inflections"

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