Sha256: a7e49f6bd1e4b3743c8b881d4a2bc9e5cbd09cc39dd86873d3b2adaecf0d8108
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
module ReverseMarkdown class Config attr_accessor :unknown_tags, :github_flavored def initialize @unknown_tags = :pass_through @github_flavored = false @inline_options = {} end def with(options = {}) @inline_options = options result = yield @inline_options = {} result end def unknown_tags @inline_options[:unknown_tags] || @unknown_tags end def github_flavored @inline_options[:github_flavored] || @github_flavored end end end
Version data entries
4 entries across 4 versions & 1 rubygems