Sha256: 5cf1f2010548ab37b64a244a607f5c06d36d7af6d8486efbf13ed8fbcfb60da7

Contents?: true

Size: 208 Bytes

Versions: 399

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

399 entries across 347 versions & 40 rubygems

Version Path
activesupport-5.0.0.beta2 lib/active_support/core_ext/module/reachable.rb
activejob-lock-0.0.2 rails/activesupport/lib/active_support/core_ext/module/reachable.rb
activesupport-5.0.0.beta1.1 lib/active_support/core_ext/module/reachable.rb
activesupport-4.2.5.1 lib/active_support/core_ext/module/reachable.rb
activesupport-4.1.14.1 lib/active_support/core_ext/module/reachable.rb
activesupport-3.2.22.1 lib/active_support/core_ext/module/reachable.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activesupport-4.2.4/lib/active_support/core_ext/module/reachable.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/module/reachable.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activesupport-4.2.4/lib/active_support/core_ext/module/reachable.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/module/reachable.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/core_ext/module/reachable.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/core_ext/module/reachable.rb
activesupport-5.0.0.beta1 lib/active_support/core_ext/module/reachable.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activesupport-4.2.4/lib/active_support/core_ext/module/reachable.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/module/reachable.rb
activesupport-4.1.14 lib/active_support/core_ext/module/reachable.rb
activesupport-4.2.5 lib/active_support/core_ext/module/reachable.rb
activesupport-4.2.5.rc2 lib/active_support/core_ext/module/reachable.rb
activesupport-4.1.14.rc2 lib/active_support/core_ext/module/reachable.rb
activesupport-4.2.5.rc1 lib/active_support/core_ext/module/reachable.rb