Class: Skylight::Util::MultiIO Private
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #close ⇒ Object private
-
#initialize(*targets) ⇒ MultiIO
constructor
private
A new instance of MultiIO.
- #write(*args) ⇒ Object private
Constructor Details
#initialize(*targets) ⇒ MultiIO
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of MultiIO.
7 8 9 |
# File 'lib/skylight/util/multi_io.rb', line 7 def initialize(*targets) @targets = targets end |
Instance Method Details
#close ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/skylight/util/multi_io.rb', line 15 def close @targets.each(&:close) end |
#write(*args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/skylight/util/multi_io.rb', line 11 def write(*args) @targets.each {|t| t.write(*args)} end |