Module: Rant::IOExtras::FakeIO

Included in:
AbstractInputStream, AbstractOutputStream
Defined in:
lib/rant/archive/rubyzip/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)


10
11
12
# File 'lib/rant/archive/rubyzip/ioextras.rb', line 10

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