Module: ZipTricks::NullWriter

Defined in:
lib/zip_tricks/null_writer.rb

Overview

Used when you need to supply a destination IO for some write operations, but want to discard the data (like when estimating the size of a ZIP)

Class Method Summary collapse

Class Method Details

.<<(_) ⇒ self



9
10
11
# File 'lib/zip_tricks/null_writer.rb', line 9

def self.<<(_)
  self
end