Module: IOExtras::FakeIO

Included in:
AbstractInputStream, AbstractOutputStream
Defined in:
lib/pik/contrib/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)


15
16
17
# File 'lib/pik/contrib/zip/ioextras.rb', line 15

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