Class: Thermal::Stargraphic::CappedByteBuffer
- Inherits:
-
ByteBuffer
- Object
- ByteBuffer
- Thermal::Stargraphic::CappedByteBuffer
- Defined in:
- lib/thermal/stargraphic/capped_byte_buffer.rb
Instance Method Summary collapse
-
#initialize(max_bytes) ⇒ CappedByteBuffer
constructor
A new instance of CappedByteBuffer.
Methods inherited from ByteBuffer
#<<, #buffer, #flush, #flush_base64, #to_a, #to_base64, #to_s
Constructor Details
#initialize(max_bytes) ⇒ CappedByteBuffer
Returns a new instance of CappedByteBuffer.
6 7 8 9 10 |
# File 'lib/thermal/stargraphic/capped_byte_buffer.rb', line 6 def initialize(max_bytes) super() @max_bytes = max_bytes @byte_counter = 0 end |