module Asciidoctor::SyntaxHighlighter::RougeAdapter::Styles
Constants
- BASE_SELECTOR
- DEFAULT_STYLE
Public Instance Methods
read_stylesheet(style)
click to toggle source
# 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)
click to toggle source
# File lib/asciidoctor/syntax_highlighter/rouge.rb, line 103 def stylesheet_basename style %(rouge-#{style || DEFAULT_STYLE}.css) end
Private Instance Methods
base_style(style)
click to toggle source
# File lib/asciidoctor/syntax_highlighter/rouge.rb, line 109 def base_style style library_available? ? @@base_style_cache[style || DEFAULT_STYLE] : nil end
style_available?(style)
click to toggle source
# File lib/asciidoctor/syntax_highlighter/rouge.rb, line 113 def style_available? style (::Rouge::Theme.find style) && style end