summaryrefslogtreecommitdiff
path: root/lib/net/smtp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r--lib/net/smtp.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index dfb27660fd..b7b0f6bccc 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -1,6 +1,6 @@
=begin
-= net/smtp.rb version 1.2.3
+= net/smtp.rb
Copyright (c) 1999-2001 Yukihiro Matsumoto
@@ -13,6 +13,8 @@ Ruby Distribute License or GNU General Public License.
NOTE: You can find Japanese version of this document in
the doc/net directory of the standard ruby interpreter package.
+$Id$
+
== What is This Module?
This module provides your program the functions to send internet
@@ -217,7 +219,7 @@ module Net
class SMTP < Protocol
protocol_param :port, '25'
- protocol_param :command_type, '::Net::NetPrivate::SMTPCommand'
+ protocol_param :command_type, '::Net::SMTPCommand'
def initialize( addr, port = nil )
@@ -294,9 +296,6 @@ module Net
- module NetPrivate
-
-
class SMTPCommand < Command
def initialize( sock )
@@ -424,6 +423,9 @@ module Net
end
- end # module Net::NetPrivate
+ # for backward compatibility
+ module NetPrivate
+ SMTPCommand = ::Net::SMTPCommand
+ end
end # module Net