Class: Atom::Content
- Inherits:
-
Object
- Object
- Atom::Content
- Defined in:
- lib/atom.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Base, External, Html, Text, Xhtml
Class Method Summary collapse
Class Method Details
.parse(xml) ⇒ Object
172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/atom.rb', line 172 def self.parse(xml) if xml['src'] && !xml['src'].empty? External.new(xml) else case xml['type'] when "xhtml" Xhtml.new(xml) when "html" Html.new(xml) else Text.new(xml) end end end |