Sha256: 253e28f6d607a18f74f1ce6593faa4a73f694e45edf34f62c82b065b35fb9e7a

Contents?: true

Size: 300 Bytes

Versions: 49

Compression:

Stored size: 300 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.sub(/\.rb$/, "".freeze) == path.sub(/\.rb$/, "".freeze)
  end
end

Version data entries

49 entries across 49 versions & 8 rubygems

Version Path
activesupport-5.2.8.1 lib/active_support/core_ext/load_error.rb
activesupport-5.2.8 lib/active_support/core_ext/load_error.rb
activesupport-5.2.7.1 lib/active_support/core_ext/load_error.rb
activesupport-5.2.7 lib/active_support/core_ext/load_error.rb
activesupport-5.2.6.3 lib/active_support/core_ext/load_error.rb
activesupport-5.2.6.2 lib/active_support/core_ext/load_error.rb
activesupport-5.2.6.1 lib/active_support/core_ext/load_error.rb
activesupport-5.2.6 lib/active_support/core_ext/load_error.rb
activesupport-5.2.4.6 lib/active_support/core_ext/load_error.rb
activesupport-5.2.5 lib/active_support/core_ext/load_error.rb
activesupport-5.2.4.5 lib/active_support/core_ext/load_error.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.1/lib/active_support/core_ext/load_error.rb
activesupport-5.2.4.4 lib/active_support/core_ext/load_error.rb
activesupport-5.2.4.3 lib/active_support/core_ext/load_error.rb
activesupport-5.2.4.2 lib/active_support/core_ext/load_error.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.4.1/lib/active_support/core_ext/load_error.rb
activesupport-5.2.4.1 lib/active_support/core_ext/load_error.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/core_ext/load_error.rb
activesupport-5.2.4 lib/active_support/core_ext/load_error.rb
activesupport-5.2.4.rc1 lib/active_support/core_ext/load_error.rb