class ProcessExecuter::Destinations::MonitoredPipe
@api private
Handles monitored pipes
def self.handles?(destination)
-
(Boolean)
- true if destination is a ProcessExecuter::MonitoredPipe
Parameters:
-
destination
(Object
) -- the destination to check
def self.handles?(destination) destination.is_a? ProcessExecuter::MonitoredPipe end
def close
-
(void)
-
def close destination.close if destination.state == :open end
def write(data)
-
(Object)
- the return value of the pipe's write method
Parameters:
-
data
(String
) -- the data to write
def write(data) super destination.write data end