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
85 86 87 |
# File 'lib/asciidoctor/syntax_highlighter/rouge.rb', line 85 def read_stylesheet style library_available? ? @@stylesheet_cache[style || DEFAULT_STYLE] : '/* Rouge CSS disabled because Rouge is not available. */' end |
#stylesheet_basename(style) ⇒ Object
89 90 91 |
# File 'lib/asciidoctor/syntax_highlighter/rouge.rb', line 89 def stylesheet_basename style %(rouge-#{style || DEFAULT_STYLE}.css) end |