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.1 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.1.rc1 lib/active_support/core_ext/module/reachable.rb
monero_wallet_gen-0.1.0 vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.0 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.0.rc2 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.0.rc1 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.0.beta2 lib/active_support/core_ext/module/reachable.rb
activesupport-5.2.0.beta1 lib/active_support/core_ext/module/reachable.rb