Method: ProcessExecuter::Destinations::FilePath#write

Defined in:
lib/process_executer/destinations/file_path.rb

#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 file

Examples:

file_handler = ProcessExecuter::Destinations::FilePath.new("output.log")
file_handler.write("Log entry")

Parameters:

  • data (String)

    the data to write

Returns:

  • (Integer)

    the number of bytes written

Raises:

  • (IOError)

    if the file is closed



35
36
37
38
# File 'lib/process_executer/destinations/file_path.rb', line 35

def write(data)
  super
  file.write data
end