Parent

Methods

Class Index [+]

Quicksearch

Rack::Deflater::GzipStream

Public Class Methods

new(body, mtime) click to toggle source

(Not documented)

    # File lib/rack/deflater.rb, line 54
54:       def initialize(body, mtime)
55:         @body = body
56:         @mtime = mtime
57:       end

Public Instance Methods

each(&block) click to toggle source

(Not documented)

    # File lib/rack/deflater.rb, line 59
59:       def each(&block)
60:         @writer = block
61:         gzip  =::Zlib::GzipWriter.new(self)
62:         gzip.mtime = @mtime
63:         @body.each { |part| gzip.write(part) }
64:         @body.close if @body.respond_to?(:close)
65:         gzip.close
66:         @writer = nil
67:       end
write(data) click to toggle source

(Not documented)

    # File lib/rack/deflater.rb, line 69
69:       def write(data)
70:         @writer.call(data)
71:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.