lib/ways.js
function Ways(pattern, runner, destroyer, dependency){

    if(flow && arguments.length < 3)
      throw new Error('In `flow` mode you must to pass at least 3 args.');
    
    var route = new Way(pattern, runner, destroyer, dependency);
    routes.push(route);

    return route;
  }
function Ways(pattern, runner, destroyer, dependency){

    if(flow && arguments.length < 3)
      throw new Error('In `flow` mode you must to pass at least 3 args.');
    
    var route = new Way(pattern, runner, destroyer, dependency);
    routes.push(route);

    return route;
  }
function Ways ( pattern , runner , destroyer , dependency ) { if ( flow && arguments . length < 3 ) throw new Error ( 'In `flow` mode you must to pass at least 3 args.' ) ; var route = new Way ( pattern , runner , destroyer , dependency ) ; routes . push ( route ) ; return route ; }
Sets up a new route
@param {String} pattern      Pattern string
@param {Function} runner     Route's action runner
@param {Function} destroyer  Optional, Route's action destroyer (flow mode)
@param {String} dependency   Optional, specifies a dependency by pattern
Sets up a new route