Skip to content

Instantly share code, notes, and snippets.

@plambert
Created October 5, 2021 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plambert/80ce07a4fc09b5d1ec2dc6a8156b83d4 to your computer and use it in GitHub Desktop.
Save plambert/80ce07a4fc09b5d1ec2dc6a8156b83d4 to your computer and use it in GitHub Desktop.
Socket::Address.to_json
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