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



99
100
101
# File 'lib/asciidoctor/syntax_highlighter/rouge.rb', line 99

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

#stylesheet_basename(style) ⇒ Object



103
104
105
# File 'lib/asciidoctor/syntax_highlighter/rouge.rb', line 103

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