Class: Rvm2::Ui::Multi::IoWriteRouter
- Inherits:
-
Object
- Object
- Rvm2::Ui::Multi::IoWriteRouter
- Defined in:
- lib/rvm2/ui/multi/io_write_router.rb
Instance Method Summary collapse
- #<<(*args) ⇒ Object
-
#initialize(parent, type) ⇒ IoWriteRouter
constructor
A new instance of IoWriteRouter.
- #print(*args) ⇒ Object
- #printf(*args) ⇒ Object
- #puts(*args) ⇒ Object
- #write(*args) ⇒ Object
- #write_nonblock(*args) ⇒ Object
Constructor Details
#initialize(parent, type) ⇒ IoWriteRouter
Returns a new instance of IoWriteRouter.
6 7 8 9 |
# File 'lib/rvm2/ui/multi/io_write_router.rb', line 6 def initialize(parent, type) @parent = parent @type = type end |
Instance Method Details
#<<(*args) ⇒ Object
13 14 15 |
# File 'lib/rvm2/ui/multi/io_write_router.rb', line 13 def <<(*args) @parent.handlers.each{|h| h.send(@type).<<(*args) } end |
#print(*args) ⇒ Object
16 17 18 |
# File 'lib/rvm2/ui/multi/io_write_router.rb', line 16 def print(*args) @parent.handlers.each{|h| h.send(@type).print(*args) } end |
#printf(*args) ⇒ Object
19 20 21 |
# File 'lib/rvm2/ui/multi/io_write_router.rb', line 19 def printf(*args) @parent.handlers.each{|h| h.send(@type).printf(*args) } end |
#puts(*args) ⇒ Object
22 23 24 |
# File 'lib/rvm2/ui/multi/io_write_router.rb', line 22 def puts(*args) @parent.handlers.each{|h| h.send(@type).puts(*args) } end |
#write(*args) ⇒ Object
10 11 12 |
# File 'lib/rvm2/ui/multi/io_write_router.rb', line 10 def write(*args) @parent.handlers.each{|h| h.send(@type).write(*args) } end |
#write_nonblock(*args) ⇒ Object
25 26 27 |
# File 'lib/rvm2/ui/multi/io_write_router.rb', line 25 def write_nonblock(*args) @parent.handlers.each{|h| h.send(@type).write_nonblock(*args) } end |