From 1a7cb01d6410dc7c56b46ef51b188bdf87b5fd4c Mon Sep 17 00:00:00 2001 From: aamine Date: Tue, 13 Mar 2001 05:48:58 +0000 Subject: 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@1243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/protocol.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/net/protocol.rb') diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index 7018158315..a440ef0817 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 -- cgit v1.2.3