Sha256: 54890b87917b4c2b65885f4376671bfa4f3503b94185108bf3a511b7ff11c789

Contents?: true

Size: 469 Bytes

Versions: 20

Compression:

Stored size: 469 Bytes

Contents

module RelatonW3c
  class W3cBibliographicItem < RelatonBib::BibliographicItem
    TYPES = %w[
      candidateRecommendation groupNote proposedEditedRecommendation
      proposedRecommendation recommendation retired workingDraft
    ].freeze

    # @param doctype [String]
    def initialize(**args)
      if args[:doctype] && !TYPES.include?(args[:doctype])
        warn "[relaton-w3c] invalid document type: #{args[:doctype]}"
      end
      super
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
relaton-w3c-1.12.3 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.12.2 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.12.1 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.12.0 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.11.6 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.11.5 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.11.4 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.11.3 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.11.2 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.11.1 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.11.0 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.10.1 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.10.0 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.9.6 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.9.5 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.9.4 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.9.3 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.9.2 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.9.1 lib/relaton_w3c/w3c_bibliographic_item.rb
relaton-w3c-1.9.0 lib/relaton_w3c/w3c_bibliographic_item.rb