Method: Coradoc::Element::Bibliography#initialize

Defined in:
lib/coradoc/element/bibliography.rb

#initialize(options = {}) ⇒ Bibliography

Returns a new instance of Bibliography.



6
7
8
9
10
11
# File 'lib/coradoc/element/bibliography.rb', line 6

def initialize(options = {})
  @id = options.fetch(:id, nil)
  @anchor = @id.nil? ? nil : Inline::Anchor.new(@id)
  @title = options.fetch(:title, nil)
  @entries = options.fetch(:entries, nil)
end