class ReverseAdoc::Config

Attributes

destination[RW]
external_images[RW]
image_counter[RW]
image_counter_pattern[RW]
input_format[RW]
mathml2asciimath[RW]
sourcedir[RW]
tag_border[RW]
unknown_tags[RW]

Public Class Methods

new() click to toggle source
# File lib/reverse_adoc/config.rb, line 8
def initialize
  @unknown_tags     = :pass_through
  @input_format     = :html
  @mathml2asciimath = false
  @external_images  = false

  # Destination to save file and images
  @destination      = nil

  # Source of HTML
  # @sourcedir        = nil

  # Image counter, assuming there are max 999 images
  @image_counter    = 1
  # pad with 0s
  @image_counter_pattern = '%03d'

  @em_delimiter     = '_'.freeze
  @strong_delimiter = '*'.freeze
  @inline_options   = {}
  @tag_border       = ' '.freeze
end

Public Instance Methods

with(options = {}) { || ... } click to toggle source
# File lib/reverse_adoc/config.rb, line 31
def with(options = {})
  @inline_options = options
  result = yield
  @inline_options = {}
  result
end