Sha256: bd25bec91e738f30586ba1d8f64d9b145f92cec2e48b925298c746a6ba20b31a
Contents?: true
Size: 446 Bytes
Versions: 6
Compression:
Stored size: 446 Bytes
Contents
module Coradoc module Element class Admonition < Base attr_accessor :type, :content, :line_break def initialize(content, type, options = {}) @content = content @type = type.downcase.to_sym @line_break = options.fetch(:line_break, "") end def to_adoc content = Coradoc::Generator.gen_adoc(@content) "#{type.to_s.upcase}: #{content}#{@line_break}" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems