Module: Nanoc::Gzip
Defined Under Namespace
Classes: Filter
Constant Summary collapse
- VERSION =
"0.2.4"
Instance Method Summary collapse
Instance Method Details
#gzip(content, level, strategy) ⇒ void
This method returns an undefined value.
22 23 24 25 26 |
# File 'lib/nanoc-gzip/gzip.rb', line 22 def gzip(content, level, strategy) level ||= BEST_COMPRESSION strategy ||= DEFAULT_STRATEGY GzipWriter.open(output_filename, level, strategy) { _1.write(content) } end |