Class: Pieces::Server

Inherits:
Rack::Server
  • Object
show all
Defined in:
lib/pieces/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Server

Returns a new instance of Server.



8
9
10
11
# File 'lib/pieces/server.rb', line 8

def initialize(options)
  @path = options[:path]
  super
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

Instance Method Details

#startObject



13
14
15
16
17
# File 'lib/pieces/server.rb', line 13

def start
  build_pieces
  listener.start
  super
end