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
-
#write(string) ⇒ Integer
The amount of bytes consumed.
Instance Method Details
#write(string) ⇒ Integer
Returns 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 |