Sha256: 1a579026f4d717fe85b3914a0cf5ca89e426a56c23d74d58ebbf0657c113223c

Contents?: true

Size: 299 Bytes

Versions: 134

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true

class LoadError
  # Returns true if the given path name (except perhaps for the ".rb"
  # extension) is the missing file which caused the exception to be raised.
  def is_missing?(location)
    location.delete_suffix(".rb") == path.to_s.delete_suffix(".rb")
  end
end

Version data entries

134 entries across 128 versions & 19 rubygems

Version Path
activesupport-7.1.0.beta1 lib/active_support/core_ext/load_error.rb
activesupport-7.0.8 lib/active_support/core_ext/load_error.rb
activesupport-7.0.7.2 lib/active_support/core_ext/load_error.rb
activesupport-6.1.7.6 lib/active_support/core_ext/load_error.rb
activesupport-7.0.7.1 lib/active_support/core_ext/load_error.rb
activesupport-6.1.7.5 lib/active_support/core_ext/load_error.rb
activesupport-7.0.7 lib/active_support/core_ext/load_error.rb
mlh-rubocop-config-1.0.2 vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.6/lib/active_support/core_ext/load_error.rb
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.6/lib/active_support/core_ext/load_error.rb
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5/lib/active_support/core_ext/load_error.rb
activesupport-7.0.6 lib/active_support/core_ext/load_error.rb
activesupport-7.0.5.1 lib/active_support/core_ext/load_error.rb
activesupport-6.1.7.4 lib/active_support/core_ext/load_error.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/core_ext/load_error.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/core_ext/load_error.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activesupport-7.0.3.1/lib/active_support/core_ext/load_error.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/core_ext/load_error.rb
fablicop-1.10.2 vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5/lib/active_support/core_ext/load_error.rb
activesupport-7.0.5 lib/active_support/core_ext/load_error.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/activesupport-7.0.4.3/lib/active_support/core_ext/load_error.rb