Module Cri::CoreExtensions::String
In: lib/cri/core_ext/string.rb

Methods

Public Instance methods

@return [String] The string, formatted to be used as the name of a command

  in the help

@return [String] The string, formatted to be used as an option definition

  of a command in the help

@return [String] The string, formatted to be used as a title in a section

  in the help

Extracts individual paragraphs (separated by two newlines).

@return [Array<String>] A list of paragraphs in the string

Word-wraps and indents the string.

@param [Number] width The maximal width of each line. This also includes

  indentation, i.e. the actual maximal width of the text is
  `width`-`indentation`.

@param [Number] indentation The number of spaces to indent each line.

@return [String] The word-wrapped and indented string

[Validate]