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