End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Specification#bin_dir
bin_dir
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/specification.rb, line 1578
def bin_dir
@bin_dir ||= File.join gem_dir, bindir
end
Returns the full path to installed gem’s bin directory.
NOTE: do not confuse this with bindir, which is just ‘bin’, not a full path.