Method: Diff::LCS::Change#<=>

Defined in:
lib/diff/lcs/change.rb

#<=>(other) ⇒ Object



65
66
67
68
69
70
# File 'lib/diff/lcs/change.rb', line 65

def <=>(other)
  r = action <=> other.action
  r = position <=> other.position if r.zero?
  r = element <=> other.element if r.zero?
  r
end