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
172 173 174 175 176 177 178 179 180 181 |
# File 'lib/atom.rb', line 172 def self.parse(xml) case xml['type'] when "xhtml" Xhtml.new(xml) when "html" Html.new(xml) else Text.new(xml) end end |