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#require_paths=
require_paths=(val)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/specification.rb, line 526
def require_paths=(val)
@require_paths = Array(val)
end
Paths in the gem to add to $LOAD_PATH when this gem is activated. If you have an extension you do not need to add "ext" to the require path, the extension build process will copy the extension files into “lib” for you.
The default value is "lib"
Usage:
Example
# If all library files are in the root directory... spec.require_paths = ['.']
See also
#require_path=
#reset_nil_attributes_to_default
#require_path
#ri_dir
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0