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

Methods

Public Instance methods

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]