lib/iso_bib_item/contributor.rb in iso-bib-item-0.1.8 vs lib/iso_bib_item/contributor.rb in iso-bib-item-0.1.9
- old
+ new
@@ -80,10 +80,11 @@
def initialize(organization)
@organization = organization
@description = []
end
+ # @params builder [Nokogiri::XML::Builder]
def to_xml(builder)
builder.affilation do
builder.name { name.to_xml builder } if name
description.each { |d| builder.description { d.to_xml builder } }
organization.to_xml builder
@@ -109,9 +110,10 @@
# @return [String]
def url
@uri.to_s
end
+ # @params builder [Nokogiri::XML::Builder]
def to_xml(builder)
contacts.each { |contact| contact.to_xml builder }
end
end
end