lib/pancake/paths.rb
def push_paths(name, paths, glob = nil)
      paths = [paths].flatten
      raise NoPathsGiven if paths.blank?
      _load_paths[name] ||= []
      _load_paths[name] << [paths, glob]
    end
def push_paths(name, paths, glob = nil)
      paths = [paths].flatten
      raise NoPathsGiven if paths.blank?
      _load_paths[name] ||= []
      _load_paths[name] << [paths, glob]
    end
Push a named path and optional glob onto the list of paths associated with <name>

 @param [Symbol]         name  The name to associate with the given path and glob
 @param [String, Array]  paths A path or paths to associate with the namd and glob
 @param [String, Nil]    glob  The glob to associate with the given path(s) and name

 @example No Glob:
   MyClass.push_paths(:foo, "path/for/foo")

 @example Using a Glob:
   MyClass.push_paths(:foo, "path/for/foo", "**/*.rb")

 @example Using Multiple paths:
   MyClass.push_paths(:foo, ["path/one", "path/two"], "**/*.rb")

 @raise [Pancake::NoPathsGiven] raised when an empty paths array is provided
 @author Daniel Neighman
 @since 0.1.1
 @api public