instance method
Gem::Specification#extensions
extensions
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/specification.rb, line 583
def extensions
@extensions ||= []
end
Extensions to build when installing the gem, specifically the paths to extconf.rb-style files used to compile extensions.
These files will be run when the gem is installed, causing the C (or whatever) code to be compiled on the user’s machine.
Usage:
Example
spec.extensions << 'ext/rmagic/extconf.rb'
See Gem::Ext::Builder for information about writing extensions for gems.
See also
#extensions=
#executables=
#executables
#extensions_dir
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0