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
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.7/lib/active_support/core_ext/load_error.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.4/lib/active_support/core_ext/load_error.rb
activesupport-8.0.1 lib/active_support/core_ext/load_error.rb
activesupport-8.0.0.1 lib/active_support/core_ext/load_error.rb
activesupport-7.2.2.1 lib/active_support/core_ext/load_error.rb
activesupport-7.1.5.1 lib/active_support/core_ext/load_error.rb
activesupport-7.0.8.7 lib/active_support/core_ext/load_error.rb
activesupport-8.0.0 lib/active_support/core_ext/load_error.rb
activesupport-7.2.2 lib/active_support/core_ext/load_error.rb
activesupport-7.1.5 lib/active_support/core_ext/load_error.rb
activesupport-8.0.0.rc2 lib/active_support/core_ext/load_error.rb
activesupport-7.2.1.2 lib/active_support/core_ext/load_error.rb
activesupport-7.1.4.2 lib/active_support/core_ext/load_error.rb
activesupport-7.0.8.6 lib/active_support/core_ext/load_error.rb
activesupport-6.1.7.10 lib/active_support/core_ext/load_error.rb
activesupport-8.0.0.rc1 lib/active_support/core_ext/load_error.rb
activesupport-6.1.7.9 lib/active_support/core_ext/load_error.rb
activesupport-7.2.1.1 lib/active_support/core_ext/load_error.rb
activesupport-7.1.4.1 lib/active_support/core_ext/load_error.rb
activesupport-7.0.8.5 lib/active_support/core_ext/load_error.rb