Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

Gem::Ext::Builder.new

new(spec, build_args = spec.build_args, target_rbconfig = Gem.target_rbconfig, build_jobs = nil)

Creates a new extension builder for spec. If the spec does not yet have build arguments, saved, set build_args which is an ARGV-style array.

See also .make .ruby .class_name .run also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0