Class: Evernicious::EnexBuilder
- Inherits:
-
Object
- Object
- Evernicious::EnexBuilder
- Defined in:
- lib/evernicious/enex_builder.rb
Instance Method Summary collapse
Instance Method Details
#build_enex_document(bookmarks) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/evernicious/enex_builder.rb', line 3 def build_enex_document(bookmarks) builder = Nokogiri::XML::Builder.new do |xml| xml.send('en-export'.to_sym){ bookmarks.each do |bookmark| build_bookmark(xml, bookmark) end } end Nokogiri::XML(builder.to_xml) end |