Sha256: c21570d019782f5eb2ea7ab8185664d8d52c6062c3d372a4d41c4f1d2c17fc0e
Contents?: true
Size: 847 Bytes
Versions: 64
Compression:
Stored size: 847 Bytes
Contents
require "relaton_bib/workgroup" module RelatonBib class TechnicalCommittee # @return [RelatonBib::WorkGroup] attr_reader :workgroup # @param workgroup [RelatonBib::WorkGroup] def initialize(workgroup) @workgroup = workgroup end # @param builder [Nokogiri::XML::Builder] def to_xml(builder) builder.send "technical-committee" do |b| workgroup.to_xml b end end # @return [Hash] def to_hash workgroup.to_hash end # @param prefix [String] # @param count [Integer] number of technical committees # @return [String] def to_asciibib(prefix = "", count = 1) pref = prefix.empty? ? prefix : prefix + "." pref += "technical_committee" out = count > 1 ? "#{pref}::\n" : "" out += workgroup.to_asciibib pref out end end end
Version data entries
64 entries across 64 versions & 1 rubygems