Sha256: 1cd3000962d10a8a16c9857e209076829bf9acef2eafd811850149b066516979
Contents?: true
Size: 929 Bytes
Versions: 2
Compression:
Stored size: 929 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
relaton-bib-1.3.1 | lib/relaton_bib/editorial_group.rb |
relaton-bib-1.3.0 | lib/relaton_bib/editorial_group.rb |