Class: Nanoc::Gzip::Filter
- Inherits:
-
Filter
- Object
- Filter
- Nanoc::Gzip::Filter
- Includes:
- Nanoc::Gzip
- Defined in:
- lib/nanoc-gzip/gzip/filter.rb
Constant Summary
Constants included from Nanoc::Gzip
Instance Method Summary collapse
Methods included from Nanoc::Gzip
Instance Method Details
#run(str, options = {}) ⇒ String
11 12 13 14 15 16 17 |
# File 'lib/nanoc-gzip/gzip/filter.rb', line 11 def run(str, = {}) gzip( item.binary? ? File.binread(str) : str, [:level], [:strategy] ) end |