Class: Autowatchr::Tee
- Inherits:
-
StringIO
- Object
- StringIO
- Autowatchr::Tee
- Defined in:
- lib/autowatchr.rb
Instance Attribute Summary collapse
-
#io ⇒ Object
readonly
Returns the value of attribute io.
Instance Method Summary collapse
-
#initialize(io) ⇒ Tee
constructor
A new instance of Tee.
- #write(string) ⇒ Object
Constructor Details
#initialize(io) ⇒ Tee
Returns a new instance of Tee.
90 91 92 93 |
# File 'lib/autowatchr.rb', line 90 def initialize(io) super("") @io = io end |
Instance Attribute Details
#io ⇒ Object (readonly)
Returns the value of attribute io.
89 90 91 |
# File 'lib/autowatchr.rb', line 89 def io @io end |
Instance Method Details
#write(string) ⇒ Object
95 96 97 98 |
# File 'lib/autowatchr.rb', line 95 def write(string) super @io.write(string) end |