Sha256: 40b95fbcf4c887578f082b44fcc9c722f3af38f074c54189a7a5edbcadc0c6ad

Contents?: true

Size: 291 Bytes

Versions: 51

Compression:

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

Version data entries

51 entries across 49 versions & 7 rubygems

Version Path
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/activesupport-6.0.0/lib/active_support/core_ext/load_error.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/core_ext/load_error.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/core_ext/load_error.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/core_ext/load_error.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/core_ext/load_error.rb
activesupport-6.0.0 lib/active_support/core_ext/load_error.rb
activesupport-6.0.0.rc2 lib/active_support/core_ext/load_error.rb
activesupport-6.0.0.rc1 lib/active_support/core_ext/load_error.rb
activesupport-6.0.0.beta3 lib/active_support/core_ext/load_error.rb
activesupport-6.0.0.beta2 lib/active_support/core_ext/load_error.rb
activesupport-6.0.0.beta1 lib/active_support/core_ext/load_error.rb