Class Diff::LCS::Change
In: lib/diff/lcs/change.rb
Parent: Object

Represents a simplistic (non-contextual) change. Represents the removal or addition of an element from either the old or the new sequenced enumerable.

Methods

<=>   ==   from_a   new   to_a  

Included Modules

Comparable Diff::LCS::ChangeTypeTests

Attributes

action  [R]  Returns the action this Change represents. Can be ’+’ (adding?), ’-’ (deleting?), ’=’ (unchanged?), # or ’!’ (changed?). When created by Diff::LCS#diff or Diff::LCS#sdiff, it may also be ’>’ (finished_a?) or ’<’ (finished_b?).
element  [R] 
position  [R] 

Public Class methods

Public Instance methods

Creates a Change from an array produced by Change#to_a.

[Validate]