Class: Dapp::Project::Shellout::Streaming::Proxy::Base
- Inherits:
-
Object
- Object
- Dapp::Project::Shellout::Streaming::Proxy::Base
- Defined in:
- lib/dapp/project/shellout/streaming.rb
Overview
Base
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.
25 26 27 28 |
# File 'lib/dapp/project/shellout/streaming.rb', line 25 def initialize(*streams, with_time: false) @streams = streams @with_time = with_time end |
Instance Method Details
#<<(str) ⇒ Object
30 31 32 |
# File 'lib/dapp/project/shellout/streaming.rb', line 30 def <<(str) @streams.each { |s| s << format_string(str) } end |