Sha256: d46cd0ddf439287e909ab620e77ca09abe8e02b2f4f408d8f1a6c998b59aa33d
Contents?: true
Size: 752 Bytes
Versions: 27
Compression:
Stored size: 752 Bytes
Contents
module RelatonIec class CitationType # @return [String] attr_reader :bibitemid # @return [Array<elatonBib::Locality, RelatonBib::LocalityStack>] attr_reader :locality # @return [String, nil] attr_reader :date # # @param [String] bibitemid # @param [Array<RelatonBib::Locality, RelatonBib::LocalityStack>] locality # @param [String, nil] date # def initialize(bibitemid:, locality:, date: nil) @bibitemid = bibitemid @locality = locality @date = date end # # @param [Nokogiri::XML::Builder] builder # def to_xml(builder) builder.parent[:bibitemid] = bibitemid locality.each { |l| l.to_xml builder } builder.date date if date end end end
Version data entries
27 entries across 27 versions & 1 rubygems