Module: Asciidoctor::SyntaxHighlighter::CodeRayAdapter::Styles

Includes:
Loader
Included in:
Asciidoctor::SyntaxHighlighter::CodeRayAdapter, Asciidoctor::SyntaxHighlighter::CodeRayAdapter
Defined in:
lib/asciidoctor/syntax_highlighter/coderay.rb

Instance Method Summary collapse

Instance Method Details

#read_stylesheetObject



71
72
73
# File 'lib/asciidoctor/syntax_highlighter/coderay.rb', line 71

def read_stylesheet
  @@stylesheet_cache ||= (::File.read (::File.join Stylesheets::STYLESHEETS_DIR, stylesheet_basename), mode: FILE_READ_MODE).rstrip
end

#stylesheet_basenameObject



75
76
77
# File 'lib/asciidoctor/syntax_highlighter/coderay.rb', line 75

def stylesheet_basename
  'coderay-asciidoctor.css'
end