Sha256: beff07000ac34563841245b51917fde404e973d1615d7251e2794e2a2fe4bc0c
Contents?: true
Size: 309 Bytes
Versions: 3
Compression:
Stored size: 309 Bytes
Contents
# frozen_string_literal: true require 'jellyfish' module Jellyfish class ChunkedBody include Enumerable attr_reader :body def initialize &body @body = body end def each &block if block body.call(block) else to_enum(:each) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jellyfish-1.4.0 | lib/jellyfish/chunked_body.rb |
jellyfish-1.3.1 | lib/jellyfish/chunked_body.rb |
jellyfish-1.3.0 | lib/jellyfish/chunked_body.rb |