class RelatonW3c::W3cBibliographicItem

Constants

TYPES

Public Class Methods

new(**args) click to toggle source

@param doctype [String]

Calls superclass method
# File lib/relaton_w3c/w3c_bibliographic_item.rb, line 9
def initialize(**args)
  if args[:doctype] && !TYPES.include?(args[:doctype])
    warn "[relaton-w3c] invalid document type: #{args[:doctype]}"
  end
  super
end