summaryrefslogtreecommitdiff
path: root/lib/diff/lcs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/diff/lcs.rb')
-rw-r--r--lib/diff/lcs.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb
index 031e2d7..4461af0 100644
--- a/lib/diff/lcs.rb
+++ b/lib/diff/lcs.rb
@@ -576,10 +576,12 @@ class << Diff::LCS
end
end
+ # standard:disable Style/HashSyntax
PATCH_MAP = { # :nodoc:
:patch => { "+" => "+", "-" => "-", "!" => "!", "=" => "=" }.freeze,
:unpatch => { "+" => "-", "-" => "+", "!" => "!", "=" => "=" }.freeze
}.freeze
+ # standard:enable Style/HashSyntax
# Applies a +patchset+ to the sequence +src+ according to the +direction+
# (<tt>:patch</tt> or <tt>:unpatch</tt>), producing a new sequence.