Sha256: 26c17393bdc807552dd6d62d6ad3da03a54bf54504b3ca4afbb7b377a0bfbb4b

Contents?: true

Size: 172 Bytes

Versions: 4

Compression:

Stored size: 172 Bytes

Contents

# frozen_string_literal: true

module Nonnative
  class CloseAllSocketPair < SocketPair
    def connect(local_socket)
    ensure
      local_socket.close
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nonnative-1.41.0 lib/nonnative/close_all_socket_pair.rb
nonnative-1.40.0 lib/nonnative/close_all_socket_pair.rb
nonnative-1.39.0 lib/nonnative/close_all_socket_pair.rb
nonnative-1.38.0 lib/nonnative/close_all_socket_pair.rb