Class: ProcessExecuter::Destinations::IO Private
- Inherits:
-
ProcessExecuter::DestinationBase
- Object
- ProcessExecuter::DestinationBase
- ProcessExecuter::Destinations::IO
- Defined in:
- lib/process_executer/destinations/io.rb
Overview
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.
Handles IO objects
Instance Attribute Summary
Attributes inherited from ProcessExecuter::DestinationBase
Class Method Summary collapse
-
.handles?(destination) ⇒ Boolean
private
Determines if this class can handle the given destination.
Instance Method Summary collapse
-
#write(data) ⇒ Integer
private
Writes data to the IO object.
Methods inherited from ProcessExecuter::DestinationBase
#close, #compatible_with_monitored_pipe?, compatible_with_monitored_pipe?, #initialize, #string
Constructor Details
This class inherits a constructor from ProcessExecuter::DestinationBase
Class Method Details
.handles?(destination) ⇒ Boolean
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.
Determines if this class can handle the given destination
28 29 30 |
# File 'lib/process_executer/destinations/io.rb', line 28 def self.handles?(destination) destination.is_a?(::IO) && destination.respond_to?(:fileno) && destination.fileno end |
Instance Method Details
#write(data) ⇒ Integer
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.
Writes data to the IO object
19 20 21 22 |
# File 'lib/process_executer/destinations/io.rb', line 19 def write(data) super destination.write data end |