Class: ReadabilityImporter::Loader::InstapaperCsvLoader
- Defined in:
- lib/readability_importer/loader.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path) ⇒ InstapaperCsvLoader
constructor
A new instance of InstapaperCsvLoader.
- #load ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(path) ⇒ InstapaperCsvLoader
Returns a new instance of InstapaperCsvLoader.
58 59 60 |
# File 'lib/readability_importer/loader.rb', line 58 def initialize(path) @path = path end |
Class Method Details
.desc ⇒ Object
54 55 56 |
# File 'lib/readability_importer/loader.rb', line 54 def self.desc "Path to CSV file" end |
Instance Method Details
#load ⇒ Object
62 63 64 65 66 |
# File 'lib/readability_importer/loader.rb', line 62 def load CSV.read(@path).map do |line| line[0] end.reverse end |