disu.se

UnifiedClass

Namespace

Lookout::Diff::Formats

Ancestors
  1. Enumerable

  2. Value

  3. Object

Formats Groups in unified format. This format shows Groups of related operations, providing a script of changes to be made that is both human and computer readable. For more information, see http://en.wikipedia.org/wiki/Diff#Unified_format.

This format is used by Difference::String for multi-line Strings.

Constructor

initialize(groupsGroups)#

Formats groups in unified format.

Instance Methods

each{ |stringString| … }self#

Enumerates the formatted groups.

eachEnumerator<String>#

Returns an Enumerator over the formatted groups.

to_sString#

Returns the concatenation of the formatted groups.