# File lib/asciidoctor/syntax_highlighter/pygments.rb, line 97 def read_stylesheet style library_available? ? @@stylesheet_cache[style || DEFAULT_STYLE] || '/* Failed to load Pygments CSS. */' : '/* Pygments CSS disabled because Pygments is not available. */' end
# File lib/asciidoctor/syntax_highlighter/pygments.rb, line 101 def stylesheet_basename style %Q(pygments-#{style || DEFAULT_STYLE}.css) end
# File lib/asciidoctor/syntax_highlighter/pygments.rb, line 107 def base_style style library_available? ? @@base_style_cache[style || DEFAULT_STYLE] : nil end
# File lib/asciidoctor/syntax_highlighter/pygments.rb, line 111 def style_available? style (((@@available_styles ||= ::Pygments.styles.to_set).include? style) rescue nil) && style end