Method: MemFs::IO#each_byte
- Defined in:
- lib/memfs/io.rb
#each_byte ⇒ Object Also known as: bytes
132 133 134 135 136 137 |
# File 'lib/memfs/io.rb', line 132 def each_byte return to_enum(__callee__) unless block_given? fail IOError, 'not opened for reading' unless readable? content.each_byte { |byte| yield(byte) } self end |