Sha256: 2345b3fd88b3356ec2a6120113ea3ba845e6d677dd7dbdb4765a490286af96da
Contents?: true
Size: 1009 Bytes
Versions: 96
Compression:
Stored size: 1009 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::TechnicalCommittee>] 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? technical_committee.any? end end end
Version data entries
96 entries across 96 versions & 1 rubygems