rubys / mars

Yet Another Planet Refactoring

This URL has Read+Write access

mars / reconstitute.rb
100644 12 lines (9 sloc) 0.207 kb
1
2
3
4
5
6
7
8
9
10
11
12
require 'open-uri'
 
require 'planet/sift'
require 'planet/transmogrify'
 
ARGV.each do |arg|
  doc = Planet::Transmogrify.parse(open(arg))
  doc.attributes['xml:base'] = arg
  Planet.sift(doc)
  puts doc
end