Class: OpenSSL::Buffering::Buffer
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
          String
         | |
| Instance Chain: 
          self,
          String
         | |
| Inherits: | String 
 | 
| Defined in: | ext/openssl/lib/openssl/buffering.rb | 
Overview
A buffer which will retain binary encoding.
Constant Summary
- 
    BINARY =
    
 # File 'ext/openssl/lib/openssl/buffering.rb', line 27Encoding::BINARY 
Class Method Summary
- .new ⇒ Buffer constructor
Instance Method Summary
- #<<(string) (also: #concat)
- 
    
      #concat(string)  
    
    Alias for #<<. 
Constructor Details
    .new  ⇒ Buffer 
  
# File 'ext/openssl/lib/openssl/buffering.rb', line 29
def initialize super force_encoding(BINARY) end
Instance Method Details
#<<(string) Also known as: #concat
[ GitHub ]# File 'ext/openssl/lib/openssl/buffering.rb', line 35
def << string if string.encoding == BINARY super(string) else super(string.b) end return self end
#concat(string)
Alias for #<<.
# File 'ext/openssl/lib/openssl/buffering.rb', line 45
alias concat <<