Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add from_xml method.

  • Loading branch information...
commit 4deb6b5e239eaa6d61447725dfac986d957e1678 1 parent e20acbe
@christoph-buente christoph-buente authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/rosemary/element.rb
View
4 lib/rosemary/element.rb
@@ -228,6 +228,10 @@ def initialize_copy(from)
@tags = from.tags.dup
end
+ def self.from_xml(xml)
+ Parser.call(xml, :xml)
+ end
+
private
# Return next free ID

0 comments on commit 4deb6b5

Please sign in to comment.
Something went wrong with that request. Please try again.