Created
October 5, 2021 00:34
-
-
Save plambert/80ce07a4fc09b5d1ec2dc6a8156b83d4 to your computer and use it in GitHub Desktop.
Socket::Address.to_json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "socket" | |
require "json" | |
x = Socket::Address.parse("tcp://1.2.3.4:5000") | |
puts x.to_json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment