summaryrefslogtreecommitdiff
path: root/lib/net/smtp.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-17 03:08:45 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-17 03:08:45 +0000
commit772ed5507e569d7697841492a37d7607adbc9385 (patch)
tree2e30b9d1390670e908b5867208fbfb090e929faf /lib/net/smtp.rb
parent1414cebea8ac4e04d3f5d7c258bc7c26258bc4be (diff)
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@1700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r--lib/net/smtp.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index b7dfbf822b..05f5a20b49 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -90,11 +90,11 @@ send or reject SMTP session by this data.
=== Class Methods
-: new( address = 'localhost', port = 25 )
+: new( address, port = 25 )
creates a new Net::SMTP object.
-: start( address = 'localhost', port = 25, helo_domain = Socket.gethostname, account = nil, password = nil, authtype = nil )
-: start( address = 'localhost', port = 25, helo_domain = Socket.gethostname, account = nil, password = nil, authtype = nil ) {|smtp| .... }
+: start( address, port = 25, helo_domain = Socket.gethostname, account = nil, password = nil, authtype = nil )
+: start( address, port = 25, helo_domain = Socket.gethostname, account = nil, password = nil, authtype = nil ) {|smtp| .... }
is equal to
Net::SMTP.new(address,port).start(helo_domain,account,password,authtype)
@@ -204,7 +204,7 @@ module Net
protocol_param :command_type, '::Net::NetPrivate::SMTPCommand'
- def initialize( addr = nil, port = nil )
+ def initialize( addr, port = nil )
super
@esmtp = true
end