Enumerable (Module)

In: libraries/diff/diff.rb

changes by DenisMertz

  • main change:

** get the tag soup away

   the tag soup problem was first reported with <p> tags, but it appeared also with
   <li>, <ul> etc... tags
  this version should mostly fix these problems

** added a Builder class to manage the creation of the final htmldiff

  • minor changes:

** use symbols instead of string to represent opcodes ** small fix to html2list

Methods

reduce  

Public Instance methods

[Source]

    # File libraries/diff/diff.rb, line 28
28:   def reduce(init)
29:     result = init
30:     each { |item| result = yield(result, item) }
31:     result
32:   end

[Validate]