Method: HTMLDiff.diff
- Defined in:
- lib/diff.rb
.diff(a, b) ⇒ Object
399 400 401 402 403 404 405 406 407 408 409 410 411 |
# File 'lib/diff.rb', line 399 def self.diff(a, b) a = html2list(a) b = html2list(b) out = Builder.new(a, b) s = SequenceMatcher.new(a, b) s.get_opcodes.each do |opcode| out.do_op(opcode) end out.result end |