Method: Vines::Config::HttpPort#initialize
- Defined in:
- lib/vines/config/port.rb
#initialize(config, host = '0.0.0.0', port = 5280, &block) ⇒ HttpPort
Returns a new instance of HttpPort.
77 78 79 80 81 82 |
# File 'lib/vines/config/port.rb', line 77 def initialize(config, host='0.0.0.0', port=5280, &block) @stream = Vines::Stream::Http super(config, host, port, &block) defaults = {:root => File.('web'), :bind => '/xmpp'} @settings = defaults.merge(@settings) end |