Class: Diff::LCS::Change

Inherits:
Object
  • Object
show all
Defined in:
lib/vcs_toolkit/conflict.rb

Overview

I know monkey patching is evil but this is used only for consistency in arrays that contain both Diff::LCS::Change and Conflict. So we can do this: ‘changes.any? { |change| change.conflict? }` instead of `changes.any? { |change| change.is_a? VCSToolkit::Conflict }`

Instance Method Summary collapse

Instance Method Details

#conflict?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/vcs_toolkit/conflict.rb', line 10

def conflict?
  false
end