diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-13 05:48:58 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-13 05:48:58 +0000 |
commit | ca21ec4a5abb1b9205ee84b355008f37c369d9ba (patch) | |
tree | 9d7108ce6de0b46c0fe7dab59edee2551b76c702 /lib/net/protocol.rb | |
parent | 61bf430d5267d1d3029e1415cce0e932621a3473 (diff) | |
download | ruby-ca21ec4a5abb1b9205ee84b355008f37c369d9ba.tar.gz ruby-ca21ec4a5abb1b9205ee84b355008f37c369d9ba.tar.xz ruby-ca21ec4a5abb1b9205ee84b355008f37c369d9ba.zip |
aamine
* lib/net/http.rb: add HTTPRequest#basic_auth.
* lib/net/smtp.rb: raise if only account or password is given.
* lib/net/protocol.rb: WriteAdapter#<< returns self.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index 701815831..a440ef081 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -363,7 +363,10 @@ module Net @sock.__send__ @mid, str end - alias << write + def <<( str ) + @sock.__send__ @mid, str + self + end end |