Class: OpmlToOrg

Inherits:
Object
  • Object
show all
Defined in:
lib/opml2org.rb

Overview

converter from opml to org

Instance Method Summary collapse

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