Parent

Methods

EventMachine::HttpDecoders::GZip::LazyStringIO

Public Class Methods

new(string="") click to toggle source
# File lib/em-http/decoders.rb, line 120
def initialize(string="")
  @stream = string
end

Public Instance Methods

<<(string) click to toggle source
# File lib/em-http/decoders.rb, line 124
def <<(string)
  @stream << string
end
read(length=nil, buffer=nil) click to toggle source
# File lib/em-http/decoders.rb, line 128
def read(length=nil, buffer=nil)
  buffer ||= ""
  length ||= 0
  buffer << @stream[0..(length-1)]
  @stream = @stream[length..-1]
  buffer
end
size() click to toggle source
# File lib/em-http/decoders.rb, line 136
def size
  @stream.size
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.