Object
# File lib/diff/lcs/htmldiff.rb, line 16 def initialize(output, options = {}) @output = output options ||= {} @match_class = options[:match_class] || "match" @only_a_class = options[:only_a_class] || "only_a" @only_b_class = options[:only_b_class] || "only_b" end
This will be called when there is a line in A that isn't in B
# File lib/diff/lcs/htmldiff.rb, line 37 def discard_a(event) @output << htmlize(event.old_element, :only_a_class) end
Generated with the Darkfish Rdoc Generator 2.