Class: YARD::Server::Adapter
- Inherits:
-
Object
- Object
- YARD::Server::Adapter
- Defined in:
- lib/extensions.rb
Instance Method Summary collapse
-
#initialize(libs, opts = {}, server_opts = {}) ⇒ Adapter
constructor
A new instance of Adapter.
Constructor Details
#initialize(libs, opts = {}, server_opts = {}) ⇒ Adapter
Returns a new instance of Adapter.
8 9 10 11 12 13 14 15 16 |
# File 'lib/extensions.rb', line 8 def initialize(libs, opts = {}, server_opts = {}) self.class.setup self.libraries = libs self. = opts self. = server_opts self.document_root = [:DocumentRoot] self.router = ([:router] || Router).new(self) [:adapter] = self end |