Module: RelatonW3c::HashConverter

Extended by:
HashConverter
Includes:
RelatonBib::HashConverter
Included in:
HashConverter
Defined in:
lib/relaton_w3c/hash_converter.rb

Instance Method Summary collapse

Instance Method Details

#bib_item(item_hash) ⇒ RelatonW3c::W3cBibliographicItem

Parameters:

  • item_hash (Hash)

Returns:



8
9
10
# File 'lib/relaton_w3c/hash_converter.rb', line 8

def bib_item(item_hash)
  W3cBibliographicItem.new(**item_hash)
end

#create_doctype(**args) ⇒ Object



12
13
14
# File 'lib/relaton_w3c/hash_converter.rb', line 12

def create_doctype(**args)
  DocumentType.new(**args)
end