Class: Ciphr::Functions::ZLib::Gzip::UncloseableIOProxy
- Inherits:
-
Object
- Object
- Ciphr::Functions::ZLib::Gzip::UncloseableIOProxy
- Defined in:
- lib/ciphr/functions/zlib.rb
Overview
hack to prevent GzipWriter from closing StringIO
Instance Method Summary collapse
-
#initialize(delegate) ⇒ UncloseableIOProxy
constructor
A new instance of UncloseableIOProxy.
- #method_missing(meth, *args, &block) ⇒ Object
Constructor Details
#initialize(delegate) ⇒ UncloseableIOProxy
Returns a new instance of UncloseableIOProxy.
40 41 42 |
# File 'lib/ciphr/functions/zlib.rb', line 40 def initialize(delegate) @delegate = delegate end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/ciphr/functions/zlib.rb', line 44 def method_missing(meth, *args, &block) if meth.to_s != "close" @delegate.send(meth, *args, &block) else nil end end |