Skip to content
This repository
tag: v3.0.8.rc2
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 11 lines (9 sloc) 0.232 kb
1 2 3 4 5 6 7 8 9 10
require 'active_support/core_ext/module/anonymous'
require 'active_support/core_ext/string/inflections'

class Module
  def reachable? #:nodoc:
    !anonymous? && name.constantize.equal?(self)
  rescue NameError
    false
  end
end
Something went wrong with that request. Please try again.