class ReverseMarkdown::Config

Attributes

force_encoding[W]
github_flavored[W]
tag_border[W]
unknown_tags[W]

Public Class Methods

new() click to toggle source
# File lib/reverse_markdown/config.rb, line 5
def initialize
  @unknown_tags     = :pass_through
  @github_flavored  = false
  @force_encoding   = false
  @em_delimiter     = '_'.freeze
  @strong_delimiter = '**'.freeze
  @inline_options   = {}
  @tag_border       = ' '.freeze
end

Public Instance Methods

force_encoding() click to toggle source
# File lib/reverse_markdown/config.rb, line 34
def force_encoding
  @inline_options[:force_encoding] || @force_encoding
end
github_flavored() click to toggle source
# File lib/reverse_markdown/config.rb, line 26
def github_flavored
  @inline_options[:github_flavored] || @github_flavored
end
tag_border() click to toggle source
# File lib/reverse_markdown/config.rb, line 30
def tag_border
  @inline_options[:tag_border] || @tag_border
end
unknown_tags() click to toggle source
# File lib/reverse_markdown/config.rb, line 22
def unknown_tags
  @inline_options[:unknown_tags] || @unknown_tags
end
with(options = {}) { || ... } click to toggle source
# File lib/reverse_markdown/config.rb, line 15
def with(options = {})
  @inline_options = options
  result = yield
  @inline_options = {}
  result
end