postrank-labs/goliath — pull request #113 by schmurfy (2011-12-11 18:04:30+00:00)
Title: allow passing arguments to api class constructor

@igrigorik Second attempt ;)
I added the options to pass to the api class constructor in the :api_options key to avoid any collision with the options passed to the router class.

The code check if the constructor excepts arguments or not to not interfere with existing code, another option would be to add a constructor to the Goliath::API class accepting an argument but it would break if someone have a child class defining its own constructor.

Let me know which one your prefer.