Class: Atom::Content
- Inherits:
-
Object
- Object
- Atom::Content
- Defined in:
- lib/atom.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Base, Html, Text, Xhtml
Class Method Summary collapse
Class Method Details
.parse(xml) ⇒ Object
160 161 162 163 164 165 166 167 168 169 |
# File 'lib/atom.rb', line 160 def self.parse(xml) case xml['type'] when "xhtml" Xhtml.new(xml) when "html" Html.new(xml) else Text.new(xml) end end |