Class: OPMLImport

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opml_file) ⇒ OPMLImport

Returns a new instance of OPMLImport.



4
5
6
7
# File 'lib/argh_ss/opml_import.rb', line 4

def initialize(opml_file)
  file = File.open(opml_file)
  @opml = Nokogiri::XML(file)
end

Instance Attribute Details

#opmlObject (readonly)

Returns the value of attribute opml.



2
3
4
# File 'lib/argh_ss/opml_import.rb', line 2

def opml
  @opml
end

#to_hashObject (readonly)

Returns the value of attribute to_hash.



2
3
4
# File 'lib/argh_ss/opml_import.rb', line 2

def to_hash
  @to_hash
end