Class: OPMLImport
- Inherits:
-
Object
- Object
- OPMLImport
- Defined in:
- lib/argh_ss/opml_import.rb
Instance Attribute Summary collapse
-
#opml ⇒ Object
readonly
Returns the value of attribute opml.
-
#to_hash ⇒ Object
readonly
Returns the value of attribute to_hash.
Instance Method Summary collapse
-
#initialize(opml_file) ⇒ OPMLImport
constructor
A new instance of OPMLImport.
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
#opml ⇒ Object (readonly)
Returns the value of attribute opml.
2 3 4 |
# File 'lib/argh_ss/opml_import.rb', line 2 def opml @opml end |
#to_hash ⇒ Object (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 |