class Build::Files::List

def with(**options)

@returns [Paths] A new paths list with transformed paths.
@parameter updated_path [Path] The modified path.
@parameter path [Path] The original path.
@yields {|path, updated_path| ...} Each original and updated path.
@parameter options [Hash] Options to pass to {Path#with}.
Transform paths with modified attributes.
def with(**options)
	return to_enum(:with, **options) unless block_given?
	
	paths = []
	
	self.each do |path|
		updated_path = path.with(**options)
		
		yield path, updated_path
		
		paths << updated_path
	end
	
	return Paths.new(paths)
end