Class: Asciidoctor::Question::PDFGAPBlockProcessor

Inherits:
GAPBlockProcessor show all
Defined in:
lib/asciidoctor-question/gap/extension.rb

Instance Method Summary collapse

Methods inherited from GAPBlockProcessor

#process

Methods inherited from Extensions::BaseProcessor

inherited, #process_error, #process_error_push

Instance Method Details

#post_answers(parent, tag) ⇒ Object



59
60
61
# File 'lib/asciidoctor-question/gap/extension.rb', line 59

def post_answers(parent, tag)

end

#prepare_gap(value, tag) ⇒ Object



50
51
52
53
54
55
56
57
# File 'lib/asciidoctor-question/gap/extension.rb', line 50

def prepare_gap(value, tag)
  if tag[:solution] then
    "`[red]## +++__#{value}__+++ ##`"
  else
    "+++ #{'_' * (value.size + 4)} +++"
  end

end