class Snaptoken::Diff::HTMLLineByLine
Public Class Methods
new(formatter)
click to toggle source
# File lib/snaptoken/diff.rb, line 148 def initialize(formatter) @formatter = formatter end
Public Instance Methods
stream(tokens) { |span| ... }
click to toggle source
# File lib/snaptoken/diff.rb, line 152 def stream(tokens, &b) token_lines(tokens) do |line| line.each do |tok, val| yield @formatter.span(tok, val) end yield "\n" end end