Sha256: 9748a950e6621a8f3f83d39e547ffda769a4b97ebdf74da09ca8908692bc511d

Contents?: true

Size: 263 Bytes

Versions: 48

Compression:

Stored size: 263 Bytes

Contents

# 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

Version data entries

48 entries across 48 versions & 7 rubygems

Version Path
activesupport-5.2.8.1 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.8 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.7.1 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.7 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.6.3 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.6.2 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.6.1 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.6 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.4.6 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.5 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.4.5 lib/active_support/core_ext/module/reachable.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.1/lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.4.4 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.4.3 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.4.2 lib/active_support/core_ext/module/reachable.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.4.1/lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.4.1 lib/active_support/core_ext/module/reachable.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.4 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.4.rc1 lib/active_support/core_ext/module/reachable.rb