method

new

ruby latest stable - Class: UNIXSocket
new(p1)
public

Creates a new UNIX client socket connected to path.

require 'socket'

s = UNIXSocket.new("/tmp/sock")
s.send "hello", 0