summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2021-12-19 20:47:05 -0500
committerGitHub <noreply@github.com>2021-12-19 20:47:05 -0500
commit1719c61e7f7ea60cee72effa87d82629f4d401c9 (patch)
tree44e915db3fc13da020da9ec2d91a39a585322c1a
parentcd4b76d53d77fa596d72584d7531fdb811cd38bf (diff)
parent0e4fdb9b3b6ab715c5886274c52335c742387c0d (diff)
downloaddiff-lcs-1719c61e7f7ea60cee72effa87d82629f4d401c9.tar.gz
Merge pull request #73 from tiendo1011/fix-infinite-method-call
Fix infinite method call
-rw-r--r--lib/diff/lcs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb
index 63888a1..443c54f 100644
--- a/lib/diff/lcs.rb
+++ b/lib/diff/lcs.rb
@@ -85,14 +85,14 @@ module Diff::LCS # rubocop:disable Style/Documentation
# Traverses the discovered longest common subsequences between +self+ and
# +other+. See Diff::LCS#traverse_sequences.
def traverse_sequences(other, callbacks = nil, &block)
- traverse_sequences(self, other, callbacks || Diff::LCS::SequenceCallbacks, &block)
+ Diff::LCS.traverse_sequences(self, other, callbacks || Diff::LCS::SequenceCallbacks, &block)
end
# Traverses the discovered longest common subsequences between +self+ and
# +other+ using the alternate, balanced algorithm. See
# Diff::LCS#traverse_balanced.
def traverse_balanced(other, callbacks = nil, &block)
- traverse_balanced(self, other, callbacks || Diff::LCS::BalancedCallbacks, &block)
+ Diff::LCS.traverse_balanced(self, other, callbacks || Diff::LCS::BalancedCallbacks, &block)
end
# Attempts to patch +self+ with the provided +patchset+. A new sequence based