summaryrefslogtreecommitdiff
path: root/lib/diff/lcs/hunk.rb
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2021-12-23 11:25:43 -0500
committerAustin Ziegler <austin@zieglers.ca>2022-07-04 20:26:10 -0400
commitb160187f3d94f84b38faadb0726f7b0ae773d7eb (patch)
tree3fadefafeb60cdbb3f6b5fb85fa2c53a8d058cad /lib/diff/lcs/hunk.rb
parent7d087cc973685105e2bc1c69dca60d719138dcbc (diff)
downloaddiff-lcs-b160187f3d94f84b38faadb0726f7b0ae773d7eb.tar.gz
standardrb --only Style/Alias --fix
Diffstat (limited to 'lib/diff/lcs/hunk.rb')
-rw-r--r--lib/diff/lcs/hunk.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diff/lcs/hunk.rb b/lib/diff/lcs/hunk.rb
index 9f596f3..7f97a7d 100644
--- a/lib/diff/lcs/hunk.rb
+++ b/lib/diff/lcs/hunk.rb
@@ -102,7 +102,7 @@ class Diff::LCS::Hunk
@start_new = hunk.start_new
blocks.unshift(*hunk.blocks)
end
- alias unshift merge
+ alias_method :unshift, :merge
# Determines whether there is an overlap between this hunk and the
# provided hunk. This will be true if the difference between the two hunks