Module: Zip::IOExtras::FakeIO

Included in:
AbstractInputStream, AbstractOutputStream
Defined in:
lib/zip/ioextras.rb

Overview

Implements kind_of? in order to pretend to be an IO object

Instance Method Summary collapse

Instance Method Details

#kind_of?(object) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/zip/ioextras.rb', line 25

def kind_of?(object)
  object == IO || super
end