From: Caleb Clausen Date: 2010-05-31T10:36:16+09:00 Subject: Re: uninitialized constant error... trying to create a TCPsocket in a module On 5/30/10, Dennis Nedry wrote: > Okay, forget about the editor thing.. (; > > Trying to convert the BBS to 1.9. I've run into a weird problem with > some code I didn't write... > > basically, I'm getting an error trying to create a TCPsocket.. > > /home/mark/qbbs2/chat/common.rb:40:in `initialize': uninitialized > constant Chat::Client::TCPsocket (NameError) > > I've been looking on the web, and it looks like there have been > scoping changes, but I'm not quite sure how to fix it. Excerpts > below... [snip] > def initialize(host, port) > > @sock = TCPsocket.new(host, port) > > end Spelled wrong, I guess. The correct name is TCPSocket, not TCPsocket.