Sha256: c050cdb0bdc278413eaca57e3f4bf05a01e80bc10ca7aa9b1e80b56562e4acf5
Contents?: true
Size: 988 Bytes
Versions: 19
Compression:
Stored size: 988 Bytes
Contents
require "relaton_bib/technical_committee" module RelatonBib class EditorialGroup include RelatonBib # @return [Array<RelatonBib::TechnicalCommittee>] attr_accessor :technical_committee # @param technical_committee [Array<RelatonBib::TecnicalCommittee>] def initialize(technical_committee) @technical_committee = technical_committee end # @param builder [Nokogigi::XML::Builder] def to_xml(builder) builder.editorialgroup do |b| technical_committee.each { |tc| tc.to_xml b } end end # @return [Hash] def to_hash single_element_array technical_committee end # @param prefix [String] # @return [String] def to_asciibib(prefix = "") pref = prefix.empty? ? "editorialgroup" : prefix + ".editorialgroup" technical_committee.map do |tc| tc.to_asciibib pref, technical_committee.size end.join end # @return [true] def presence? true end end end
Version data entries
19 entries across 19 versions & 1 rubygems