Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::BasicSpecification#lib_dirs
lib_dirs
lib/rubygems/basic_specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/basic_specification.rb, line 360
def lib_dirs
if raw_require_paths
if raw_require_paths.size > 1
"{#{raw_require_paths.join(",")}}"
else
raw_require_paths.first
end
else
"lib" # default value for require_paths for bundler/inline
end
end
Returns the require_paths of this gem as a string usable in Dir.glob, relative to full_gem_path.