class Rouge::Formatters::HTMLTable
Public Class Methods
new(inner, opts={})
click to toggle source
# File lib/rouge/formatters/html_table.rb, line 7 def initialize(inner, opts={}) @inner = inner @start_line = opts.fetch(:start_line, 1) @line_format = opts.fetch(:line_format, '%i') @table_class = opts.fetch(:table_class, 'rouge-table') @gutter_class = opts.fetch(:gutter_class, 'rouge-gutter') @code_class = opts.fetch(:code_class, 'rouge-code') end
Public Instance Methods
stream(tokens) { |%(click to toggle source