End of Life Ruby 3.2 has reached end of life and gets no more fixes. 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-3.2.0/lib/rubygems/specification.rb, line 1547
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.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0