Class: CrcTest::TestOutputStream

Inherits:
Object
  • Object
show all
Includes:
Zip::IOExtras::AbstractOutputStream
Defined in:
lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Zip::IOExtras::AbstractOutputStream

#print, #printf, #putc, #puts, #write

Methods included from Zip::IOExtras::FakeIO

#kind_of?

Constructor Details

#initializeTestOutputStream

Returns a new instance of TestOutputStream.



161
162
163
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb', line 161

def initialize
  @buffer = ""
end

Instance Attribute Details

#bufferObject

Returns the value of attribute buffer.



159
160
161
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb', line 159

def buffer
  @buffer
end

Instance Method Details

#<<(data) ⇒ Object



165
166
167
168
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb', line 165

def << (data)
  @buffer << data
  self
end