Method: Coradoc::Element::Block::Core#initialize
- Defined in:
- lib/coradoc/element/block/core.rb
#initialize(title, options = {}) ⇒ Core
Returns a new instance of Core.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/coradoc/element/block/core.rb', line 11 def initialize(title, = {}) @title = title @id = .fetch(:id, nil) @anchor = @id.nil? ? nil : Inline::Anchor.new(@id) @type_str = .fetch(:type, nil) @attributes = .fetch(:attributes, AttributeList.new) @delimiter = .fetch(:delimiter, "") @lang = .fetch(:lang, nil) @lines = .fetch(:lines, []) end |