Module: WritableIO

Defined in:
lib/block_cipher_kit/io_types.rb

Overview

Used as a stand-in for any IO that responds to ‘#write` This module is defined for YARD docs so that Sorbet has a proper type definition.

Instance Method Summary collapse

Instance Method Details

#write(string) ⇒ Integer

Returns the amount of bytes consumed. Will usually be ‘bytes.bytesize`.

Parameters:

  • string (String)

    the bytes to write into the IO

Returns:

  • (Integer)

    the amount of bytes consumed. Will usually be ‘bytes.bytesize`



37
38
# File 'lib/block_cipher_kit/io_types.rb', line 37

def write(string)
end