Class: ActiveSupport::Gzip::Stream

Inherits:
StringIO
  • Object
show all
Defined in:
activesupport/lib/active_support/gzip.rb

Instance Method Summary collapse

Constructor Details

#initializeStream

Returns a new instance of Stream.



9
10
11
12
# File 'activesupport/lib/active_support/gzip.rb', line 9

def initialize(*)
  super
  set_encoding "BINARY" if "".encoding_aware?
end

Instance Method Details

#closeObject



13
# File 'activesupport/lib/active_support/gzip.rb', line 13

def close; rewind; end