Method: Rouge::Formatters::HTMLTable#initialize
- Defined in:
- lib/rouge/formatters/html_table.rb
#initialize(inner, opts = {}) ⇒ HTMLTable
Returns a new instance of HTMLTable.
9 10 11 12 13 14 15 16 |
# File 'lib/rouge/formatters/html_table.rb', line 9 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 |