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-6.1.4.6 lib/active_support/core_ext/load_error.rb
activesupport-6.1.4.5 lib/active_support/core_ext/load_error.rb
activesupport-7.0.2.1 lib/active_support/core_ext/load_error.rb
activesupport-7.0.2 lib/active_support/core_ext/load_error.rb
ric-0.14.2 vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/load_error.rb
ric-0.14.1 vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/load_error.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/load_error.rb
activesupport-7.0.1 lib/active_support/core_ext/load_error.rb
ric-0.14.0 vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/load_error.rb
activesupport-7.0.0 lib/active_support/core_ext/load_error.rb
activesupport-6.1.4.4 lib/active_support/core_ext/load_error.rb
activesupport-7.0.0.rc3 lib/active_support/core_ext/load_error.rb
activesupport-6.1.4.3 lib/active_support/core_ext/load_error.rb
activesupport-6.1.4.2 lib/active_support/core_ext/load_error.rb
activesupport-7.0.0.rc2 lib/active_support/core_ext/load_error.rb
activesupport-7.0.0.rc1 lib/active_support/core_ext/load_error.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/core_ext/load_error.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/core_ext/load_error.rb
activesupport-7.0.0.alpha2 lib/active_support/core_ext/load_error.rb
activesupport-7.0.0.alpha1 lib/active_support/core_ext/load_error.rb