Class: Dapp::Dapp::Shellout::Streaming::Proxy::Base
- Inherits:
-
Object
- Object
- Dapp::Dapp::Shellout::Streaming::Proxy::Base
- Defined in:
- lib/dapp/dapp/shellout/streaming.rb
Direct Known Subclasses
Instance Method Summary collapse
- #<<(str) ⇒ Object
- #format_string(str) ⇒ Object
-
#initialize(*streams, with_time: false) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(*streams, with_time: false) ⇒ Base
Returns a new instance of Base.
21 22 23 24 |
# File 'lib/dapp/dapp/shellout/streaming.rb', line 21 def initialize(*streams, with_time: false) @streams = streams @with_time = with_time end |
Instance Method Details
#<<(str) ⇒ Object
26 27 28 |
# File 'lib/dapp/dapp/shellout/streaming.rb', line 26 def <<(str) @streams.each { |s| s << format_string(str) } end |