class Tilia::CalDav::Xml::Property::SupportedCollationSet
supported-collation-set property
This property is a representation of the supported-collation-set property in the CalDAV namespace.
This property is defined in: tools.ietf.org/html/rfc4791#section-7.5.1
Public Instance Methods
xml_serialize(writer)
click to toggle source
The xmlSerialize metod is called during xml writing.
Use the writer argument to write its own xml serialization.
An important note: do not create a parent element. Any element implementing XmlSerializble should only ever write what's considered its 'inner xml'.
The parent of the current element is responsible for writing a containing element.
This allows serializers to be re-used for different element names.
If you are opening new elements, you must also close them again.
@param Writer writer @return void
# File lib/tilia/cal_dav/xml/property/supported_collation_set.rb, line 32 def xml_serialize(writer) collations = [ 'i;ascii-casemap', 'i;octet', 'i;unicode-casemap' ] collations.each do |collation| writer.write_element("{#{Plugin::NS_CALDAV}}supported-collation", collation) end end