Class: Hovercraft::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/hovercraft/server.rb

Instance Method Summary collapse

Constructor Details

#initializeServer

Returns a new instance of Server.



5
6
7
8
# File 'lib/hovercraft/server.rb', line 5

def initialize
  builder = Builder.new
  @application = builder.application
end

Instance Method Details

#call(env) ⇒ Object



10
11
12
# File 'lib/hovercraft/server.rb', line 10

def call(env)
  @application.call(env)
end