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 URI 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
#html, #initialize, #inspect, #to_s, #type, #type=, #xml
Methods included from AttrEl
Methods inherited from Element
#append_elem, attributes, #build, builders, def_get, def_set, do_parsing, #get, #get_atom_attrb, #get_atom_elem, #get_atom_elems, #get_elem, #get_elems, #initialize, is_atom_element, is_element, on_build, on_init, parse, run_initters, #set, #set_atom_attrb, #to_s, #to_xml
Methods included from Parsers
#on_parse, #on_parse_attr, #on_parse_many, #on_parse_root, #parse_plain
Methods included from Converters
#atom_attrb, #atom_element, #atom_elements, #atom_link, #atom_string, #atom_time, #attrb, #build_plain, #element, #elements, #strings, #time
Constructor Details
This class inherits a constructor from Atom::Text
Instance Method Details
#src=(v) ⇒ Object
206 207 208 209 210 211 212 213 214 |
# File 'lib/atom/text.rb', line 206 def src= v @content = nil if self.base @src = (self.base.to_uri + v).to_s else @src = v end end |