/**
  *	Sets up some conversions to run later.
  *
  *	@param string|array $conversions The input directory, or an array of
  *		input and output directories, in such form: array( input => output ).
  *		If no output directory is specified, the converted files will be
  *		outputted in the input directory.
  *	@param string|array $from The input pattern, or an array of output types
  *		indexed by pattern, in such form: array( pattern => outputtype ).
  *	@param string $to The output type, if $from is a pattern.
  *	@return Transformist Current instance to allow chaining.
  */
 public function setup($dir, $from, $to = '')
 {
     if (is_array($dir)) {
         reset($dir);
         $input = key($dir);
         $output = current($dir);
     } else {
         $input = $dir;
         $output = $input;
     }
     $this->_pending = array('input' => Transformist_FileInfo::absolutePath($input), 'output' => Transformist_FileInfo::absolutePath($output), 'conversions' => is_array($from) ? $from : array($from => $to));
     return $this;
 }