Class: Dapp::Project::Shellout::Streaming::Stream

Inherits:
Object
  • Object
show all
Defined in:
lib/dapp/project/shellout/streaming.rb

Overview

Stream

Instance Method Summary collapse

Instance Method Details

#<<(string) ⇒ Object



12
13
14
# File 'lib/dapp/project/shellout/streaming.rb', line 12

def <<(string)
  buffer << string
end

#bufferObject



8
9
10
# File 'lib/dapp/project/shellout/streaming.rb', line 8

def buffer
  @buffer ||= []
end

#showObject



16
17
18
# File 'lib/dapp/project/shellout/streaming.rb', line 16

def show
  buffer.join.strip
end