See FileTest.socket?.
FileTest.socket?
Returns:
840 841 842
# File 'lib/fakefs/pathname.rb', line 840 def socket? FileTest.socket?(@path) end