Object
# File lib/diffy/html_formatter.rb, line 4 def initialize(diff, options = {}) @diff = diff @options = options end
# File lib/diffy/html_formatter.rb, line 9 def to_s if @options[:highlight_words] wrap_lines(highlighted_words) else wrap_lines(@diff.map{|line| wrap_line(ERB::Util.h(line))}) end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.