Class: Dapp::Dapp::Shellout::Streaming::Stream
- Inherits:
-
Object
- Object
- Dapp::Dapp::Shellout::Streaming::Stream
- 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 |
#buffer ⇒ Object
6 7 8 |
# File 'lib/dapp/dapp/shellout/streaming.rb', line 6 def buffer @buffer ||= [] end |
#show ⇒ Object
14 15 16 |
# File 'lib/dapp/dapp/shellout/streaming.rb', line 14 def show buffer.join.strip end |