class IsoBibItem::DocRelationCollection

Document relations collection

Public Class Methods

new(relations) click to toggle source

@param [Array<Hash{type=>String, identifier=>String}>]

Calls superclass method
# File lib/iso_bib_item/document_relation_collection.rb, line 108
def initialize(relations)
  super relations.map { |r| r.is_a?(Hash) ? DocumentRelation.new(r) : r }
end

Public Instance Methods

replaces() click to toggle source

@return [Array<IsoBibItem::DocumentRelation>]

# File lib/iso_bib_item/document_relation_collection.rb, line 113
def replaces
  select { |r| r.type == 'replace' }
end