lib/utopia/path.rb
def component_offset(index)
			if Range === index
				Range.new(adjust_index(index.first), adjust_index(index.last), index.exclude_end?)
			else
				adjust_index(index)
			end
		end
# We adjust the index slightly so that indices reference path components rather than the directory markers at the start and end of the path components array.
We adjust the index slightly so that indices reference path components rather than the directory markers at the start and end of the path components array.
We adjust the index slightly so that indices reference path components rather than the directory markers at the start and end of the path components array .
def component_offset(index)
			if Range === index
				Range.new(adjust_index(index.first), adjust_index(index.last), index.exclude_end?)
			else
				adjust_index(index)
			end
		end
def component_offset ( index ) if Range === index Range . new ( adjust_index ( index . first ) , adjust_index ( index . last ) , index . exclude_end? ) else adjust_index ( index ) end end
We adjust the index slightly so that indices reference path components rather than the directory markers at the start and end of the path components array.
We adjust the index slightly so that indices reference path components rather than the directory markers at the start and end of the path components array .
index