Class: Atom::Content
Overview
Atom::Content behaves the same as an Atom::Text, but for two things:
-
the “type” attribute can be an arbitrary media type
-
there is a “src” attribute which is an IRI that points to the content of the entry (in which case the content element will be empty)
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Text
#[]=, #initialize, #inspect, #taguri, #to_element, #to_s, #to_yaml, #to_yaml_style, #xml
Methods inherited from Element
#[], #[]=, attrb, attrs, define_accessor, element, elements, inherited, #initialize, #local_name, required, #taguri, #to_element, #to_s, #to_xml, #to_yaml, #to_yaml_properties
Constructor Details
This class inherits a constructor from Atom::Text
Instance Method Details
#html ⇒ Object
171 172 173 174 175 176 177 |
# File 'lib/atom/text.rb', line 171 def html if self["src"] "" else super end end |