disu.se

GroupClass

Namespace

Lookout::Diff

Ancestors
  1. Enumerable

  2. Value

  3. Object

Ordered sequence of related Operations; type enumerated by Groups.

Constructor

initialize(*operationsOperation*)#⚙

Initializes the group with an initial sequence of operations.

Instance Methods

empty?Boolean#⚙

Returns true if the receiver doesn’t contain any operations.

<<(operationOperation)self#⚙

Adds operation to the receiver.

fold(contextInteger)self#⚙

Folds the last operation, leaving context elements of context.

parity?Boolean#⚙

Returns true if the receiver contains one operation and that operation represents parity.

each{ |operationOperation| … }self#⚙

Enumerates the operations.

eachEnumerator<Operation>#⚙

Returns an Enumerator over the operations.

oldSlice#⚙

Returns the slice of the old sequence between the first operation’s beginning and the last operation’s end.

newSlice#⚙

Returns the slice of the new sequence between the first operation’s beginning and the last operation’s end.