Sha256: 2e8bffa4337b7c8b4531a577deb31500ec12cab8678384e2e20a0faf478fd69f

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

module Net
  class TCPClient
    module Policy
      # Policy for connecting to servers in the order specified
      class Ordered < Base
        # Calls the block once for each server, with the addresses in order
        def each(&block)
          addresses.each { |address| block.call(address) }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
net_tcp_client-2.2.1 lib/net/tcp_client/policy/ordered.rb