Class: Gem::GemcutterUtilities::WebauthnListener::SocketResponder
- Inherits:
-
Object
- Object
- Gem::GemcutterUtilities::WebauthnListener::SocketResponder
- Defined in:
- lib/rubygems/gemcutter_utilities/webauthn_listener.rb
Instance Method Summary collapse
-
#initialize(socket) ⇒ SocketResponder
constructor
A new instance of SocketResponder.
- #send(response) ⇒ Object
Constructor Details
#initialize(socket) ⇒ SocketResponder
Returns a new instance of SocketResponder.
95 96 97 |
# File 'lib/rubygems/gemcutter_utilities/webauthn_listener.rb', line 95 def initialize(socket) @socket = socket end |
Instance Method Details
#send(response) ⇒ Object
99 100 101 102 |
# File 'lib/rubygems/gemcutter_utilities/webauthn_listener.rb', line 99 def send(response) @socket.print response.to_s @socket.close end |