Sha256: 5aef41582781aff4bbdb4fb8ff15443574c341372a712ed64e61114773adb92f

Contents?: true

Size: 208 Bytes

Versions: 23

Compression:

Stored size: 208 Bytes

Contents

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

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
activesupport-5.1.7 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.7.rc1 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.6.2 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.6.1 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.6 lib/active_support/core_ext/module/reachable.rb
tdiary-5.0.8 vendor/bundle/gems/activesupport-5.1.5/lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.5 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.5.rc1 lib/active_support/core_ext/module/reachable.rb
pract6-0.1.0 .gem/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.4 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.4.rc1 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.3 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.3.rc3 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.3.rc2 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.3.rc1 lib/active_support/core_ext/module/reachable.rb
tdiary-5.0.5 vendor/bundle/gems/activesupport-5.1.2/lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.2 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.2.rc1 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.1 lib/active_support/core_ext/module/reachable.rb
activesupport-5.1.0 lib/active_support/core_ext/module/reachable.rb