aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/reachable.rb
blob: b89a38f26cc9c3ee73931326844d331545cbb658 (plain) (blame)
1
2
3
4
5
6
7
8
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
end