Module: Refinements::Shared::Reread
- Defined in:
- lib/refinements/shared/reread.rb
Overview
Provides functionality for I/O object rewinding.
Instance Method Summary collapse
Instance Method Details
#reread(length = nil, buffer: nil) ⇒ Object
7 |
# File 'lib/refinements/shared/reread.rb', line 7 def reread(length = nil, buffer: nil) = tap(&:rewind).read(length, buffer) |