class IsoBibItem::FormattedString
Formatted string
Attributes
type[R]
@return [String]
Public Class Methods
new(content:, language: nil, script: nil, type: 'plain')
click to toggle source
@param content [String] @param language [String] language code Iso639 @param script [String] script code Iso15924 @param type [String] the format type, default “plain”
available types "plain", "html", "dockbook", "tei", "asciidoc", "markdown", "isodoc"
Calls superclass method
# File lib/iso_bib_item/formatted_string.rb, line 17 def initialize(content:, language: nil, script: nil, type: 'plain') super(content, language, script) @type = type end
Public Instance Methods
to_xml(builder)
click to toggle source
Calls superclass method
# File lib/iso_bib_item/formatted_string.rb, line 22 def to_xml(builder) builder.parent["format"] = type if type super end