instance method
Gem::BasicSpecification#have_file?
have_file?(file, suffixes)
lib/rubygems/basic_specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/basic_specification.rb, line 371
def have_file?(file, suffixes)
return true if raw_require_paths.any? do |path|
base = File.join(gems_dir, full_name, path, file)
suffixes.any? {|suf| File.file? base + suf }
end
if have_extensions?
base = File.join extension_dir, file
suffixes.any? {|suf| File.file? base + suf }
else
false
end
end
No documentation available
See also
#have_extensions?
#ignored?
#gems_dir
#lib_dirs_glob
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0