class RAR::CommandLineOptions

CommandLineOptions is a convenience class to making adding new command-line switches trivial.

Constants

OptionsMap

The mappings that convert an option to an actual command line switch.

Public Instance Methods

to_a() click to toggle source

@return [Array] the list of command line options.

# File library/rar/command_line_options.rb, line 19
def to_a
  map do |key, value|
    if block = OptionsMap[key]
      block.call value
    end
  end.compact
end