Class: Asciidoctor::LaTeX::ClickStyleInsert

Inherits:
Extensions::Preprocessor
  • Object
show all
Defined in:
lib/asciidoctor/latex/prepend_processor.rb

Overview

THIS CLASS IS NO LONGER USED See 'inject_html.rb' Prepend lines to a document

Instance Method Summary (collapse)

Instance Method Details

- (Object) process(document, reader)



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/asciidoctor/latex/prepend_processor.rb', line 16

def process document, reader

  warn "Entering ClickStyleInsert".magenta if $VERBOSE

  @@line_array = []

  return reader if reader.eof?

  putline '++++'
  putline '<style>'
  putline '.click .title { color: blue; }'
  putline '</style>'
  putline '++++'

  reader.unshift_lines @@line_array
  reader
end

- (Object) putline(line)



12
13
14
# File 'lib/asciidoctor/latex/prepend_processor.rb', line 12

def putline line
  @@line_array += [line, ""]
end