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