class Vines::Config::ServerPort
Public Class Methods
new(config, host='0.0.0.0', port=5269, &block)
click to toggle source
Calls superclass method
Vines::Config::Port::new
# File lib/vines/config/port.rb, line 61 def initialize(config, host='0.0.0.0', port=5269, &block) @hosts, @stream = [], Vines::Stream::Server super(config, host, port, &block) end
Public Instance Methods
hosts(*hosts)
click to toggle source
# File lib/vines/config/port.rb, line 66 def hosts(*hosts) if hosts.any? @hosts << hosts @hosts.flatten! else @hosts end end