Class: EY::Serverside::LoggedOutput::Tee
- Defined in:
- lib/engineyard-serverside/logged_output.rb
Instance Method Summary collapse
- #<<(output) ⇒ Object
-
#initialize(*streams) ⇒ Tee
constructor
A new instance of Tee.
Constructor Details
#initialize(*streams) ⇒ Tee
Returns a new instance of Tee.
8 9 10 |
# File 'lib/engineyard-serverside/logged_output.rb', line 8 def initialize(*streams) @streams = streams.flatten end |
Instance Method Details
#<<(output) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/engineyard-serverside/logged_output.rb', line 12 def <<(output) @streams.each do |s| s << output s.flush end self end |