Module: Mockingbird::Encoders

Defined in:
lib/mockingbird/encoders.rb

Instance Method Summary collapse

Instance Method Details

#encode(content) ⇒ Object



9
10
11
# File 'lib/mockingbird/encoders.rb', line 9

def encode(content)
  content
end

#GzipEncoderObject



14
15
16
17
18
19
20
21
# File 'lib/mockingbird/encoders.rb', line 14

def GzipEncoder

  def start
    @gzw = Zlib::GzipWriter.new
    
  end

end

#IdentityEncoderObject



4
5
6
7
8
9
10
11
12
# File 'lib/mockingbird/encoders.rb', line 4

def IdentityEncoder
  def start
    nil
  end

  def encode(content)
    content
  end
end

#startObject



5
6
7
# File 'lib/mockingbird/encoders.rb', line 5

def start
  nil
end