Class: Xommelier::OPML::Element

Inherits:
Xml::Element show all
Defined in:
lib/xommelier/opml.rb

Direct Known Subclasses

Body, Head, Opml, Outline

Constant Summary

Constants included from Xml::Element::Serialization

Xml::Element::Serialization::SAVE_OPTIONS, Xml::Element::Serialization::SERIALIZATION_OPTIONS

Instance Attribute Summary

Attributes inherited from Xml::Element

#options

Attributes included from Xml::Element::Namespace

#schema_validation_errors

Complex Types collapse

Methods inherited from Xml::Element

#initialize, #inspect

Methods included from Xml::Element::Serialization

#<=>, #==, #=~, #from_xml, #to_hash, #to_nokogiri, #to_s, #to_xml

Methods included from Xml::Element::Namespace

#valid?

Constructor Details

This class inherits a constructor from Xommelier::Xml::Element

Class Method Details

.attribute(name, options = {}) ⇒ Object



53
54
55
56
# File 'lib/xommelier/opml.rb', line 53

def self.attribute(name, options = {})
  options[:as] ||= name.to_s.camelize(:lower)
  super(name, options)
end

.element(name, options = {}) ⇒ Object



48
49
50
51
# File 'lib/xommelier/opml.rb', line 48

def self.element(name, options = {})
  options[:as] ||= name.to_s.camelize(:lower)
  super(name, options)
end