method

new

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

Creates a new UNIX server socket bound to path.

require 'socket'

serv = UNIXServer.new("/tmp/sock")
s = serv.accept
p s.read