Class: OpenSSL::Buffering::Buffer
- Inherits:
-
String
- Object
- String
- OpenSSL::Buffering::Buffer
- Defined in:
- lib/openssl/buffering.rb
Overview
A buffer which will retain binary encoding.
Constant Summary collapse
- BINARY =
Encoding::BINARY
Instance Method Summary collapse
- #<<(string) ⇒ Object (also: #concat)
-
#initialize ⇒ Buffer
constructor
A new instance of Buffer.
Constructor Details
Instance Method Details
#<<(string) ⇒ Object Also known as: concat
35 36 37 38 39 40 41 42 43 |
# File 'lib/openssl/buffering.rb', line 35 def << string if string.encoding == BINARY super(string) else super(string.b) end return self end |