Method: ProcessExecuter::Options::Base#to_h

Defined in:
lib/process_executer/options/base.rb

#to_hHash

A hash representation of the options

Examples:

options = ProcessExecuter::Options.new(option1: 'value1', option2: 'value2')
options.to_h # => { option1: "value1", option2: "value2" }

Returns:

  • (Hash)


94
95
96
# File 'lib/process_executer/options/base.rb', line 94

def to_h
  @options.dup
end