Module: Asciidoctor::SyntaxHighlighter::RougeAdapter::Styles

Includes:
Loader
Included in:
Asciidoctor::SyntaxHighlighter::RougeAdapter, Asciidoctor::SyntaxHighlighter::RougeAdapter
Defined in:
lib/asciidoctor/syntax_highlighter/rouge.rb

Instance Method Summary collapse

Instance Method Details

#read_stylesheet(style) ⇒ Object



106
107
108
# File 'lib/asciidoctor/syntax_highlighter/rouge.rb', line 106

def read_stylesheet style
  library_available? ? @@stylesheet_cache[style || DEFAULT_STYLE] : '/* Rouge CSS disabled because Rouge is not available. */'
end

#stylesheet_basename(style) ⇒ Object



110
111
112
# File 'lib/asciidoctor/syntax_highlighter/rouge.rb', line 110

def stylesheet_basename style
  %(rouge-#{style || DEFAULT_STYLE}.css)
end