Class: RSS::RDF
- Includes:
- RSS10, RootElementMixin, TaxonomyTopicModel
- Defined in:
- lib/rss/1.0.rb,
lib/rss/image.rb,
lib/rss/content.rb,
lib/rss/taxonomy.rb,
lib/rss/trackback.rb,
lib/rss/dublincore.rb,
lib/rss/syndication.rb
Defined Under Namespace
Classes: Bag, Channel, Image, Item, Li, Seq, Textinput
Constant Summary collapse
- PREFIX =
'rdf'- URI =
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
Constants included from RSS10
RSS::RSS10::ELEMENTS, RSS::RSS10::NSPOOL
Constants inherited from Element
Element::GET_ATTRIBUTES, Element::HAVE_CHILDREN_ELEMENTS, Element::INDENT, Element::MODELS, Element::MUST_CALL_VALIDATORS, Element::NEED_INITIALIZE_VARIABLES, Element::PLURAL_FORMS, Element::TO_ELEMENT_METHODS
Instance Attribute Summary collapse
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#rss_version ⇒ Object
Returns the value of attribute rss_version.
-
#standalone ⇒ Object
Returns the value of attribute standalone.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes included from RootElementMixin
Attributes included from XMLStyleSheetMixin
Attributes inherited from Element
Class Method Summary collapse
Instance Method Summary collapse
- #full_name ⇒ Object
-
#initialize(version = nil, encoding = nil, standalone = nil) ⇒ RDF
constructor
A new instance of RDF.
Methods included from TaxonomyTopicModel
Methods included from BaseModel
#install_date_element, #install_have_child_element, #install_have_children_element, #install_text_element
Methods included from Utils
element_initialize_arguments?, get_file_and_line_from_caller, html_escape, new_with_value_if_need, to_class_name
Methods included from RootElementMixin
Methods included from RSS10
Methods inherited from Element
#convert, #converter=, get_attributes, have_children_elements, inherited, install_ns, models, must_call_validators, need_initialize_variables, plural_forms, required_prefix, #setup_maker, tag_name, #tag_name, to_element_methods, #to_s, #validate, #validate_for_stream
Constructor Details
#initialize(version = nil, encoding = nil, standalone = nil) ⇒ RDF
Returns a new instance of RDF.
50 51 52 |
# File 'lib/rss/1.0.rb', line 50 def initialize(version=nil, encoding=nil, standalone=nil) super('1.0', version, encoding, standalone) end |
Instance Attribute Details
#encoding ⇒ Object
Returns the value of attribute encoding.
48 49 50 |
# File 'lib/rss/1.0.rb', line 48 def encoding @encoding end |
#rss_version ⇒ Object
Returns the value of attribute rss_version.
48 49 50 |
# File 'lib/rss/1.0.rb', line 48 def rss_version @rss_version end |
#standalone ⇒ Object
Returns the value of attribute standalone.
48 49 50 |
# File 'lib/rss/1.0.rb', line 48 def standalone @standalone end |
#version ⇒ Object
Returns the value of attribute version.
48 49 50 |
# File 'lib/rss/1.0.rb', line 48 def version @version end |
Class Method Details
.required_uri ⇒ Object
24 25 26 |
# File 'lib/rss/1.0.rb', line 24 def required_uri URI end |
Instance Method Details
#full_name ⇒ Object
54 55 56 |
# File 'lib/rss/1.0.rb', line 54 def full_name tag_name_with_prefix(PREFIX) end |