Class: Datacenter::Shell::Local::SafeIO
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Datacenter::Shell::Local::SafeIO
- Defined in:
- lib/datacenter/shell/local.rb
Instance Method Summary collapse
-
#initialize(io) ⇒ SafeIO
constructor
A new instance of SafeIO.
- #write(message) ⇒ Object
Constructor Details
#initialize(io) ⇒ SafeIO
Returns a new instance of SafeIO.
6 7 8 9 |
# File 'lib/datacenter/shell/local.rb', line 6 def initialize(io) @io = io super StringIO.new end |
Instance Method Details
#write(message) ⇒ Object
11 12 13 14 |
# File 'lib/datacenter/shell/local.rb', line 11 def write() super @io.write end |