Class: AbstractOutputStreamTest::TestOutputStream
- Inherits:
-
Object
- Object
- AbstractOutputStreamTest::TestOutputStream
- Includes:
- Zip::IOExtras::AbstractOutputStream
- Defined in:
- lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/abstract_output_stream_test.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
Returns the value of attribute buffer.
Instance Method Summary collapse
- #<<(data) ⇒ Object
-
#initialize ⇒ TestOutputStream
constructor
A new instance of TestOutputStream.
Methods included from Zip::IOExtras::AbstractOutputStream
#print, #printf, #putc, #puts, #write
Methods included from Zip::IOExtras::FakeIO
Constructor Details
#initialize ⇒ TestOutputStream
Returns a new instance of TestOutputStream.
10 11 12 |
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/abstract_output_stream_test.rb', line 10 def initialize @buffer = "" end |
Instance Attribute Details
#buffer ⇒ Object
Returns the value of attribute buffer.
8 9 10 |
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/abstract_output_stream_test.rb', line 8 def buffer @buffer end |
Instance Method Details
#<<(data) ⇒ Object
14 15 16 17 |
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/abstract_output_stream_test.rb', line 14 def << (data) @buffer << data self end |