Class: RallyUserManagement::MultiIO
- Inherits:
-
Object
- Object
- RallyUserManagement::MultiIO
- Defined in:
- lib/multi_io.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(*targets) ⇒ MultiIO
constructor
A new instance of MultiIO.
- #write(*args) ⇒ Object
Constructor Details
#initialize(*targets) ⇒ MultiIO
Returns a new instance of MultiIO.
7 8 9 |
# File 'lib/multi_io.rb', line 7 def initialize(*targets) @targets = targets end |
Instance Method Details
#close ⇒ Object
15 16 17 |
# File 'lib/multi_io.rb', line 15 def close @targets.each(&:close) end |
#write(*args) ⇒ Object
11 12 13 |
# File 'lib/multi_io.rb', line 11 def write(*args) @targets.each {|t| t.write(*args)} end |