class HTTPX::Transcoder::Chunker::Encoder

  1. lib/httpx/transcoder/chunker.rb
Superclass: Object

Methods

Public Class

  1. new

Public Instance

  1. each
  2. respond_to_missing?

Public Class methods

new (body)
[show source]
   # File lib/httpx/transcoder/chunker.rb
15 def initialize(body)
16   @raw = body
17 end

Public Instance methods

each ()
[show source]
   # File lib/httpx/transcoder/chunker.rb
19 def each
20   return enum_for(__method__) unless block_given?
21 
22   @raw.each do |chunk|
23     yield "#{chunk.bytesize.to_s(16)}#{CRLF}#{chunk}#{CRLF}"
24   end
25   yield "0#{CRLF}#{CRLF}"
26 end
respond_to_missing? (meth, *args)
[show source]
   # File lib/httpx/transcoder/chunker.rb
28 def respond_to_missing?(meth, *args)
29   @raw.respond_to?(meth, *args) || super
30 end