Class: OpmlToOrg
- Inherits:
-
Object
- Object
- OpmlToOrg
- Defined in:
- lib/opml2org.rb
Overview
converter from opml to org
Instance Method Summary collapse
-
#initialize(file) ⇒ OpmlToOrg
constructor
A new instance of OpmlToOrg.
Constructor Details
#initialize(file) ⇒ OpmlToOrg
Returns a new instance of OpmlToOrg.
6 7 8 9 |
# File 'lib/opml2org.rb', line 6 def initialize(file) docs = Opml.new(File.read(file)) print recursive_output(docs, 1) end |