Class: MockDnsServer::ServerThread

Inherits:
Thread
  • Object
show all
Defined in:
lib/mock_dns_server/server_thread.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#serverObject

Returns the value of attribute server.



5
6
7
# File 'lib/mock_dns_server/server_thread.rb', line 5

def server
  @server
end

Class Method Details

.allObject

Thread::abort_on_exception = true



9
10
11
# File 'lib/mock_dns_server/server_thread.rb', line 9

def self.all
  Thread.list.select { |thread| thread.is_a?(ServerThread) }
end