class Rails::Paths::Path

def expanded

Expands all paths against the root and return all unique values.
def expanded
  raise "You need to set a path root" unless @root.path
  result = []
  each do |path|
    path = File.expand_path(path, @root.path)
    if @glob && File.directory?(path)
      result.concat files_in(path)
    else
      result << path
    end
  end
  result.uniq!
  result
end