Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Specification#add_self_to_load_path
add_self_to_load_path
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification.rb, line 1551
def add_self_to_load_path
return if default_gem?
paths = full_require_paths
Gem.add_to_load_path(*paths)
end
Adds this spec’s require paths to LOAD_PATH, in the proper location.
See also
#add_runtime_dependency
#author
#add_development_dependency
#author=
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0