From 6685cbeb99e58b6708aa338bf6d235c05695887b Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Mon, 13 Mar 2017 12:17:07 -0600 Subject: Document tag option and clarify spec --- lib/rouge/formatters/html_gitlab.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/rouge/formatters/html_gitlab.rb') diff --git a/lib/rouge/formatters/html_gitlab.rb b/lib/rouge/formatters/html_gitlab.rb index ec95ddf03ea..be0d97370d0 100644 --- a/lib/rouge/formatters/html_gitlab.rb +++ b/lib/rouge/formatters/html_gitlab.rb @@ -5,10 +5,9 @@ module Rouge # Creates a new Rouge::Formatter::HTMLGitlab instance. # - # [+linenostart+] The line number for the first line (default: 1). - def initialize(linenostart: 1, tag: nil) - @linenostart = linenostart - @line_number = linenostart + # [+tag+] The tag (language) of the lexer used to generate the formatted tokens + def initialize(tag: nil) + @line_number = 1 @tag = tag end -- cgit v1.2.1