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( = {}) @id = .fetch(:id, nil) @anchor = @id.nil? ? nil : Inline::Anchor.new(@id) @title = .fetch(:title, nil) @entries = .fetch(:entries, nil) end |