Class: CrcTest::TestOutputStream
- Inherits:
-
Object
- Object
- CrcTest::TestOutputStream
- Includes:
- Zip::IOExtras::AbstractOutputStream
- Defined in:
- lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.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.
161 162 163 |
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb', line 161 def initialize @buffer = "" end |
Instance Attribute Details
#buffer ⇒ Object
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 |