Class: ProcessExecuter::Destinations::Close Private

Inherits:
ProcessExecuter::DestinationBase show all
Defined in:
lib/process_executer/destinations/close.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 generic objects that respond to write

Instance Attribute Summary

Attributes inherited from ProcessExecuter::DestinationBase

#data_written, #destination

Class Method Summary collapse

Methods inherited from ProcessExecuter::DestinationBase

#close, #compatible_with_monitored_pipe?, #initialize, #string, #write

Constructor Details

This class inherits a constructor from ProcessExecuter::DestinationBase

Class Method Details

.compatible_with_monitored_pipe?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.

This class should not be wrapped in a monitored pipe



20
# File 'lib/process_executer/destinations/close.rb', line 20

def self.compatible_with_monitored_pipe? = false

.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



13
14
15
# File 'lib/process_executer/destinations/close.rb', line 13

def self.handles?(destination)
  destination == :close
end