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)
  @blacklist, @stream = [], Vines::Stream::Server
  super(config, host, port, &block)
end

Public Instance Methods

blacklist(*blacklist) click to toggle source
# File lib/vines/config/port.rb, line 66
def blacklist(*blacklist)
  if blacklist.any?
    @blacklist << blacklist
    @blacklist.flatten!
  else
    @blacklist
  end
end