Sha256: d194882e21c5245cf077e4f9fe02ffba0ad9c5e4932f6c42e05e6ef589a62436
Contents?: true
Size: 528 Bytes
Versions: 6
Compression:
Stored size: 528 Bytes
Contents
module Coradoc module Element module Block class Quote < Core def initialize(title, options = {}) @title = title @attributes = options.fetch(:attributes, AttributeList.new) @lines = options.fetch(:lines, []) @delimiter_char = "_" @delimiter_len = options.fetch(:delimiter_len, 4) end def to_adoc "\n\n#{gen_title}#{gen_attributes}#{gen_delimiter}\n" << gen_lines << "\n#{gen_delimiter}\n\n" end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems