Sha256: 786120ada4f6d859d5ca4401a7447faa72067dd71271d17840e8d3b2eb15e9b0
Contents?: true
Size: 521 Bytes
Versions: 5
Compression:
Stored size: 521 Bytes
Contents
module Coradoc module Element module Block class Literal < Core def initialize(_title, options = {}) @id = options.fetch(:id, nil) @anchor = @id.nil? ? nil : Inline::Anchor.new(@id) @lines = options.fetch(:lines, []) @delimiter_char = "." @delimiter_len = options.fetch(:delimiter_len, 4) end def to_adoc "\n\n#{gen_anchor}#{gen_delimiter}\n" << gen_lines << "\n#{gen_delimiter}\n\n" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems