diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-08-17 03:08:45 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-08-17 03:08:45 +0000 |
commit | a31fc08402beba8934984b901926f6465875a636 (patch) | |
tree | 2e30b9d1390670e908b5867208fbfb090e929faf /lib/net/protocol.rb | |
parent | 5897dea43bdd7d1228fbbca78644d20e59db684d (diff) | |
download | ruby-a31fc08402beba8934984b901926f6465875a636.tar.gz ruby-a31fc08402beba8934984b901926f6465875a636.tar.xz ruby-a31fc08402beba8934984b901926f6465875a636.zip |
aamine
* lib/net/protocol.rb: Protocol.new requires at least one arg.
* lib/net/smtp.rb: ditto.
* lib/net/pop.rb: ditto.
* lib/net/http.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index 5835c136b..ac2753ad7 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -36,7 +36,7 @@ module Net class << self - def start( address = 'localhost', port = nil, *args ) + def start( address, port = nil, *args ) instance = new( address, port ) if block_given? then @@ -79,7 +79,7 @@ module Net protocol_param :socket_type, '::Net::NetPrivate::Socket' - def initialize( addr = nil, port = nil ) + def initialize( addr, port = nil ) @address = addr || 'localhost' @port = port || type.port |