In Files

  • ruby-3.1.2/ext/openssl/lib/openssl/buffering.rb

Parent

Methods

Files

Class/Module Index [+]

Quicksearch

OpenSSL::Buffering::Buffer

A buffer which will retain binary encoding.

Constants

BINARY

Public Class Methods

new() click to toggle source
 
               # File ruby-3.1.2/ext/openssl/lib/openssl/buffering.rb, line 29
def initialize
  super

  force_encoding(BINARY)
end
            

Public Instance Methods

<<(string) click to toggle source
 
               # File ruby-3.1.2/ext/openssl/lib/openssl/buffering.rb, line 35
def << string
  if string.encoding == BINARY
    super(string)
  else
    super(string.b)
  end

  return self
end
            
Also aliased as: concat
concat(string) click to toggle source
Alias for: <<