class RemiAudio::Xspf::Meta
- RemiAudio::Xspf::Meta
- Reference
- Object
Overview
Represents a <meta>
element for embedding metadata.
Included Modules
- JSON::Serializable
Defined in:
remiaudio/xspf/xspf.crConstructors
-
.fromXML(parent : XML::Node, ns : XML::Namespace | Nil) : Meta
Creates a new
Meta
instance by parsing XML starting atparent
. -
.new(rel : URI, content : String)
Creates a new
Meta
instance. - .new(pull : JSON::PullParser)
Instance Method Summary
-
#content : String
The value of the metadata.
-
#content=(content : String)
The value of the metadata.
-
#rel : URI
A URI to a resource defining this metadata.
-
#rel=(rel : URI)
A URI to a resource defining this metadata.
-
#write(xml : XML::Builder) : Nil
Writes this instance to an
XML::Builder
for serialization.
Constructor Detail
Creates a new Meta
instance by parsing XML starting at parent
. The
parent
node should be the <meta>
element itself.