summaryrefslogtreecommitdiff
path: root/ext/openssl/lib/openssl/buffering.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/lib/openssl/buffering.rb')
-rw-r--r--ext/openssl/lib/openssl/buffering.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb
index e40dfee667..bf69ac0988 100644
--- a/ext/openssl/lib/openssl/buffering.rb
+++ b/ext/openssl/lib/openssl/buffering.rb
@@ -18,6 +18,9 @@
# OpenSSL IO buffering mix-in module.
#
# This module allows an OpenSSL::SSL::SSLSocket to behave like an IO.
+#
+# You typically won't use this module directly, you can see it implemented in
+# OpenSSL::SSL::SSLSocket.
module OpenSSL::Buffering
include Enumerable
@@ -34,6 +37,9 @@ module OpenSSL::Buffering
BLOCK_SIZE = 1024*16
+ ##
+ # Creates an instance of OpenSSL's buffering IO module.
+
def initialize(*args)
@eof = false
@rbuffer = ""