Method: DNS::Server#initialize

Defined in:
lib/faildns/server.rb

#initialize(options = {}) ⇒ Server

Returns a new instance of Server.



28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/faildns/server.rb', line 28

def initialize (options={})
  if !options.is_a? Hash
    raise ArgumentError.new('You have to pass a Hash')
  end

  @options = options

  @dispatcher = Dispatcher.new(self)

  if block_given?
    yield self
  end
end