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
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.6.1/lib/active_support/core_ext/load_error.rb
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.6.1/lib/active_support/core_ext/load_error.rb
activesupport-6.0.6.1 lib/active_support/core_ext/load_error.rb
activesupport-6.0.6 lib/active_support/core_ext/load_error.rb
activesupport-6.0.5.1 lib/active_support/core_ext/load_error.rb
activesupport-6.0.5 lib/active_support/core_ext/load_error.rb
activesupport-6.0.4.8 lib/active_support/core_ext/load_error.rb
activesupport-6.0.4.7 lib/active_support/core_ext/load_error.rb
activesupport-6.0.4.6 lib/active_support/core_ext/load_error.rb
activesupport-6.0.4.5 lib/active_support/core_ext/load_error.rb
activesupport-6.0.4.4 lib/active_support/core_ext/load_error.rb
activesupport-6.0.4.3 lib/active_support/core_ext/load_error.rb
activesupport-6.0.4.2 lib/active_support/core_ext/load_error.rb
activesupport-6.0.4.1 lib/active_support/core_ext/load_error.rb
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.4/lib/active_support/core_ext/load_error.rb
activesupport-6.0.4 lib/active_support/core_ext/load_error.rb
activesupport-6.0.3.7 lib/active_support/core_ext/load_error.rb
activesupport-6.0.3.6 lib/active_support/core_ext/load_error.rb
activesupport-6.0.3.5 lib/active_support/core_ext/load_error.rb
activesupport-6.0.3.4 lib/active_support/core_ext/load_error.rb