Socket Status in ruby

Hi,

Does anyone know of a way to get the socket state/status (a la netstat -t's
state field, but WITHOUT having to backquote a shell command)

Thanks,

Augusto Carvalho