Class: AsciiPress::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/ascii_press.rb

Defined Under Namespace

Classes: Rendering

Instance Method Summary collapse

Constructor Details

#initialize(options = {asciidoc_options: {}}) ⇒ Renderer

Returns a new instance of Renderer.

Parameters:

  • options (Hash) (defaults to: {asciidoc_options: {}})

Options Hash (options):

  • :asciidoc_options (Hash)

    Passed directly to the Asciidoctor.load method. See the AsciiDoctor documentation

  • :before_convertion (Proc)

    Proc which is given the asciidoctor text. Whatever is returned is passed to Asciidoctor.load. See the AsciiDoctor documentation

  • :after_conversion (Proc)

    Proc which is given the html text after the Asciidoctor conversion. Whatever is returned will be uploaded to WordPress

  • :rendering_proc (Proc)

    Proc which is given the Rendering object (see below). Changes made be made to the rendering in-place



74
75
76
# File 'lib/ascii_press.rb', line 74

def initialize(options = {asciidoc_options: {}})
  @options = options
end