Sha256: 4434c3dad1300a9b3069955a1aa969cd0903490db6f11b994d79d4b1376dedcf
Contents?: true
Size: 591 Bytes
Versions: 151
Compression:
Stored size: 591 Bytes
Contents
# Keep this file meanwhile https://github.com/rack/rack/pull/313 is not released module ActionDispatch class BodyProxy def initialize(body, &block) @body, @block, @closed = body, block, false end def respond_to?(*args) super or @body.respond_to?(*args) end def close return if @closed @closed = true begin @body.close if @body.respond_to? :close ensure @block.call end end def closed? @closed end def method_missing(*args, &block) @body.__send__(*args, &block) end end end
Version data entries
151 entries across 112 versions & 18 rubygems