Sha256: 2b2d347a99c05e443b86ffd5e56e75411830109fc6ab74909f760c07a6efa98e
Contents?: true
Size: 435 Bytes
Versions: 12
Compression:
Stored size: 435 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2018-2023, by Samuel Williams. module Async module IO class Buffer < String BINARY = Encoding::BINARY def initialize super force_encoding(BINARY) end def << string if string.encoding == BINARY super(string) else super(string.b) end return self end alias concat << end end end
Version data entries
12 entries across 12 versions & 1 rubygems