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.
Spelled wrong, I guess. The correct name is TCPSocket, not TCPsocket.
Thanks. I looked at that for hours and didn’t notice. I take it the
rules have been more strictly enforced in 1.9 (because that’s been
like that for years)? I’ve never really cared for capitalisation
making a difference…
Oh well, ifI was afraid of looking stupid, I’d never post…
Spelled wrong, I guess. The correct name is TCPSocket, not TCPsocket.
Thanks. I looked at that for hours and didn’t notice. I take it the
rules have been more strictly enforced in 1.9 (because that’s been
like that for years)? I’ve never really cared for capitalisation
making a difference…
Capitalization of identifiers always made a difference in Ruby!
(“always” meaning “as long as I use Ruby, which is somewhere since
1.8.x” - but I doubt such a crucial feature has changed before; if at
all then I guess in one of 0.x versions.)
Oh well, ifI was afraid of looking stupid, I’d never post…
(“always” meaning “as long as I use Ruby, which is somewhere since
1.8.x” - but I doubt such a crucial feature has changed before; if at
all then I guess in one of 0.x versions.)