diff options
Diffstat (limited to 'lib/diff/lcs.rb')
-rw-r--r-- | lib/diff/lcs.rb | 2 |
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. |