class Ronin::CLI::Commands::Quote

Produces quoted a string for a variety of programming languages.

## Usage

ronin quote [options] [FILE ...]

## Options

-f, --file FILE                  Optional file to process
    --string STRING              Optional string to process
-M, --multiline                  Process each line separately
-n, --keep-newlines              Preserves newlines at the end of each line
-X, --hex                        Quotes the data as a Hex string
-c, --c                          Quotes the data as a C string
-j, --js                         JavaScript quotes the data
-S, --shell                      Quotes the data as a Shell String
-P, --powershell                 Quotes the data as a PowerShell String
-R, --ruby                       Quotes the data as a Ruby String
-h, --help                       Print help information

## Arguments

[FILE ...]                       Optional file(s) to process

Public Instance Methods

process_string(string) click to toggle source

Quotes the String.

@param [String] string

The String to quote.

@return [String]

The quoted String.

@note

If no options are given, then `--string` is assumed.
Calls superclass method
# File lib/ronin/cli/commands/quote.rb, line 103
def process_string(string)
  if @method_calls.empty?
    string.inspect
  else
    super(string)
  end
end