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(options = {})
  @id = options.fetch(:id, nil)
  @anchor = @id.nil? ? nil : Inline::Anchor.new(@id)
  @title = options.fetch(:title, "")
  @attributes = options.fetch(:attributes, AttributeList.new)
  @delimiter_char = "+"
  @delimiter_len = options.fetch(:delimiter_len, 4)
  @lines = options.fetch(:lines, [])
end