Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::Ext::ExtConfBuilder.get_relative_path
get_relative_path(path, base)
lib/rubygems/ext/ext_conf_builder.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/ext/ext_conf_builder.rb, line 70
def self.get_relative_path(path, base)
path[0..base.length - 1] = "." if path.start_with?(base)
path
end
No documentation available