Method: Diff::LCS#lcs
- Defined in:
- lib/watobo/external/diff/lcs.rb
#lcs(other, &block) ⇒ Object
Returns an Array containing the longest common subsequence(s) between self
and other
. See Diff::LCS#LCS.
lcs = seq1.lcs(seq2)
156 157 158 |
# File 'lib/watobo/external/diff/lcs.rb', line 156 def lcs(other, &block) #:yields self[ii] if there are matched subsequences: Diff::LCS.LCS(self, other, &block) end |