instance method
Gem::BasicSpecification#require_paths
require_paths
lib/rubygems/basic_specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/basic_specification.rb, line 281
def require_paths
return raw_require_paths unless have_extensions?
[extension_dir].concat raw_require_paths
end
Paths in the gem to add to $LOAD_PATH when this gem is activated.
See also require_paths=
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_path = '.'