Sha256: 1a579026f4d717fe85b3914a0cf5ca89e426a56c23d74d58ebbf0657c113223c

Contents?: true

Size: 299 Bytes

Versions: 133

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

133 entries across 127 versions & 18 rubygems

Version Path
activesupport-7.2.0.beta2 lib/active_support/core_ext/load_error.rb
activesupport-7.1.3.4 lib/active_support/core_ext/load_error.rb
activesupport-7.0.8.4 lib/active_support/core_ext/load_error.rb
activesupport-6.1.7.8 lib/active_support/core_ext/load_error.rb
activesupport-7.2.0.beta1 lib/active_support/core_ext/load_error.rb
activesupport-7.1.3.2 lib/active_support/core_ext/load_error.rb
activesupport-7.1.3.1 lib/active_support/core_ext/load_error.rb
activesupport-7.0.8.1 lib/active_support/core_ext/load_error.rb
activesupport-6.1.7.7 lib/active_support/core_ext/load_error.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3/lib/active_support/core_ext/load_error.rb
activesupport-7.1.3 lib/active_support/core_ext/load_error.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activesupport-7.0.3.1/lib/active_support/core_ext/load_error.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/core_ext/load_error.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/core_ext/load_error.rb
activesupport-7.1.2 lib/active_support/core_ext/load_error.rb
activesupport-7.1.1 lib/active_support/core_ext/load_error.rb
activesupport-7.1.0 lib/active_support/core_ext/load_error.rb
activesupport-7.1.0.rc2 lib/active_support/core_ext/load_error.rb
activesupport-7.1.0.rc1 lib/active_support/core_ext/load_error.rb
activesupport-7.1.0.beta1 lib/active_support/core_ext/load_error.rb