See FileTest.socket?.
FileTest.socket?
Returns:
834 835 836
# File 'lib/fakefs/pathname.rb', line 834 def socket? FileTest.socket?(@path) end