Method: Bundler::CLI::Config::Base#new_value

Defined in:
lib/bundler/cli/config.rb

#new_valueObject

[View source]

130
131
132
133
134
135
136
137
# File 'lib/bundler/cli/config.rb', line 130

def new_value
  pathname = Pathname.new(value)
  if name.start_with?("local.") && pathname.directory?
    pathname.expand_path.to_s
  else
    value
  end
end