Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Specification#add_bindir
add_bindir(executables)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification.rb, line 1512
def add_bindir(executables)
return nil if executables.nil?
if @bindir
Array(executables).map {|e| File.join(@bindir, e) }
else
executables
end
rescue StandardError
nil
end
Returns an array with bindir attached to each executable in the executables list
See also
#activate_dependencies
#add_dependency
#activate
#add_dependency_with_type
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0