Class: Arrow::StreamDecoder

Inherits:
Object
  • Object
show all
Defined in:
lib/arrow/stream-decoder.rb

Instance Method Summary collapse

Instance Method Details

#consume(data) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/arrow/stream-decoder.rb', line 20

def consume(data)
  case data
  when Buffer
    consume_buffer(data)
  else
    consume_bytes(data)
  end
end