In mail "[ruby-talk:5722] Re: Help: sockets broken"
matz / zetabits.com (Yukihiro Matsumoto) wrote:
> Maybe, in net/http.rb, we should change like the following:
>
> - protocol_param :port, '80'
> + protocol_param :port, 80
Why? protocol_param() is:
def protocol_param( name, val )
module_eval %-
def self.#{name.id2name}
#{val}
end
-
end
so
protocol_param :port, '80'
is equals to
protocol_param :port, 80
If we want to make "HTTP.port" returns '80' (String), it must be
protocol_param :port, "'80'"
Minero Aoki