class Gem::GemcutterUtilities::WebauthnListener::SocketResponder - rubygems: Ruby Standard Library Documentation

# class Gem::GemcutterUtilities::WebauthnListener::SocketResponder

### Public Class Methods

new(socket) click to toggle source

    # File rubygems/gemcutter_utilities/webauthn_listener.rb, line 95
    def initialize(socket)
      @socket = socket
    end

### Public Instance Methods

send(response) click to toggle source

    # File rubygems/gemcutter_utilities/webauthn_listener.rb, line 99
    def send(response)
      @socket.print response.to_s
      @socket.close
    end