Class: Asciidoctor::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/asciidoctor-epub3/ext/asciidoctor/document.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.supports_syntax_highlighter?Boolean

Returns:

  • (Boolean)


5
6
7
8
9
10
11
12
13
# File 'lib/asciidoctor-epub3/ext/asciidoctor/document.rb', line 5

def supports_syntax_highlighter?
  if @supports_syntax_highlighter.nil?
    # Asciidoctor only got pluggable syntax highlighters since 2.0:
    # https://github.com/asciidoctor/asciidoctor/commit/23ddbaed6818025cbe74365fec7e8101f34eadca
    @supports_syntax_highlighter = method_defined? :syntax_highlighter
  end

  @supports_syntax_highlighter
end

Instance Method Details

#syntax_highlighterObject



16
17
18
# File 'lib/asciidoctor-epub3/ext/asciidoctor/document.rb', line 16

def syntax_highlighter
  nil
end