123456789_123456789_123456789_123456789_123456789_

Class: Gem::GemcutterUtilities::WebauthnListener::SocketResponder

Relationships & Source Files
Inherits: Object
Defined in: lib/rubygems/gemcutter_utilities/webauthn_listener.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(socket) ⇒ SocketResponder

[ GitHub ]

  
# File 'lib/rubygems/gemcutter_utilities/webauthn_listener.rb', line 95

def initialize(socket)
  @socket = socket
end

Instance Method Details

#send(response)

[ GitHub ]

  
# File 'lib/rubygems/gemcutter_utilities/webauthn_listener.rb', line 99

def send(response)
  @socket.print response.to_s
  @socket.close
end