Class: Relaton::Bib::Converter::BibXml::ToRfcxml
- Inherits:
-
Object
- Object
- Relaton::Bib::Converter::BibXml::ToRfcxml
- Defined in:
- lib/relaton/bib/converter/bibxml/to_rfcxml.rb
Instance Method Summary collapse
-
#initialize(item, include_keywords: true) ⇒ ToRfcxml
constructor
A new instance of ToRfcxml.
- #transform ⇒ Object
Constructor Details
#initialize(item, include_keywords: true) ⇒ ToRfcxml
Returns a new instance of ToRfcxml.
6 7 8 9 |
# File 'lib/relaton/bib/converter/bibxml/to_rfcxml.rb', line 6 def initialize(item, include_keywords: true) @item = item @include_keywords = include_keywords end |
Instance Method Details
#transform ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/relaton/bib/converter/bibxml/to_rfcxml.rb', line 11 def transform model = ::Rfcxml::V3::Reference.new model.anchor = @item.docnumber || derive_anchor model.target = create_target model.front = create_front model.format = create_format model end |