class Leg::Commands::Doc::HTMLLineByLine

Public Class Methods

new(formatter) click to toggle source
# File lib/leg/commands/doc.rb, line 24
def initialize(formatter)
  @formatter = formatter
end

Public Instance Methods

stream(tokens) { |span| ... } click to toggle source
# File lib/leg/commands/doc.rb, line 28
def stream(tokens, &b)
  token_lines(tokens) do |line|
    line.each do |tok, val|
      yield @formatter.span(tok, val)
    end
    yield "\n"
  end
end