class Net::TCPClient::Policy::Random
Policy
for connecting to servers in the order specified
Public Instance Methods
each(&block)
click to toggle source
Calls the block once for each server, with the addresses in random order
# File lib/net/tcp_client/policy/random.rb, line 7 def each(&block) addresses.shuffle.each {|address| block.call(address)} end