Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
OpenSSL::Buffering::Buffer#append_as_bytes
(*::String | ::Integer) -> ::String
append_as_bytes(string)
ext/openssl/lib/openssl/buffering.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/ext/openssl/lib/openssl/buffering.rb, line 29
def append_as_bytes(string)
if string.encoding == Encoding::BINARY
_append(string)
else
_append(string.b)
end
self
end
No documentation available
also in
4.0