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

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

Instance Method Summary collapse

Instance Method Details

#<<(string) ⇒ Object



10
11
12
# File 'lib/dapp/dapp/shellout/streaming.rb', line 10

def <<(string)
  buffer << string
end

#bufferObject



6
7
8
# File 'lib/dapp/dapp/shellout/streaming.rb', line 6

def buffer
  @buffer ||= []
end

#showObject



14
15
16
# File 'lib/dapp/dapp/shellout/streaming.rb', line 14

def show
  buffer.join.strip
end