Method: Coradoc::Element::Block::Literal#initialize
- Defined in:
- lib/coradoc/element/block/literal.rb
#initialize(title, options = {}) ⇒ Literal
Returns a new instance of Literal.
5 6 7 8 9 10 11 12 13 |
# File 'lib/coradoc/element/block/literal.rb', line 5 def initialize(title, = {}) @title = title @id = .fetch(:id, nil) @anchor = @id.nil? ? nil : Inline::Anchor.new(@id) @attributes = .fetch(:attributes, AttributeList.new) @lines = .fetch(:lines, []) @delimiter_char = "." @delimiter_len = .fetch(:delimiter_len, 4) end |