Class: RDF::Writer
- Inherits:
-
Object
- Object
- RDF::Writer
- Defined in:
- lib/rdf/writer.rb
Class Method Summary collapse
-
.gzopen(gzip_filename, options = {}, &block) ⇒ RDF::Writer
Writes output to the given ‘gzip_filename`.
Class Method Details
.gzopen(gzip_filename, options = {}, &block) ⇒ RDF::Writer
Writes output to the given ‘gzip_filename`.
any additional options (see #initialize and Format.for)
11 12 13 14 15 16 17 |
# File 'lib/rdf/writer.rb', line 11 def self.gzopen(gzip_filename, = {}, &block) Zlib::GzipWriter.open(gzip_filename) do |file| = .dup [:file_name] ||= gzip_filename self.for([:format] || ).new(file, , &block) end end |