Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add from_xml method.

  • Loading branch information...
commit 4deb6b5e239eaa6d61447725dfac986d957e1678 1 parent e20acbe
Christoph Bünte christoph-buente authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 lib/rosemary/element.rb
4 lib/rosemary/element.rb
@@ -228,6 +228,10 @@ def initialize_copy(from)
228 228 @tags = from.tags.dup
229 229 end
230 230
  231 + def self.from_xml(xml)
  232 + Parser.call(xml, :xml)
  233 + end
  234 +
231 235 private
232 236
233 237 # Return next free ID

0 comments on commit 4deb6b5

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