def paths_for(name, opts = {})
      result = []
      dirs_and_glob_for(name, opts).each do |path, glob|
        next if glob.nil?
        paths = Dir[File.join(path, glob)]
        paths = paths.reverse if opts[:invert]
        paths.each do |full_path|
          result << [path, full_path.gsub(path, "")]
        end
      end
      result
    end
def paths_for(name, opts = {})
      result = []
      dirs_and_glob_for(name, opts).each do |path, glob|
        next if glob.nil?
        paths = Dir[File.join(path, glob)]
        paths = paths.reverse if opts[:invert]
        paths.each do |full_path|
          result << [path, full_path.gsub(path, "")]
        end
      end
      result
    end
Provides an expanded, globbed list of paths and files for a given name.

 @param        [Symbol]  name    The name of the paths group
 @param        [Hash]    opts    An options hash
 @option opts  [Boolean] :invert (false) Inverts the order of the returned values

 @example
   MyClass.paths_for(:model)
   MyClass.paths_for(:model, :invert => true)

 @return [Array]
   An array of [path, file] arrays.  These may be joined to get the full path.
   All matched files for [paths, glob] will be returned in declared and then found order unless +:invert+ is true.
   Any path that has a +nil+ glob associated with it will be excluded.

 @api public
 @since 0.1.1
 @author Daniel Neighman