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