Class: EbooksRenamer::MobiParser
- Inherits:
-
Object
- Object
- EbooksRenamer::MobiParser
- Defined in:
- lib/ebooks_renamer/mobi_parser.rb
Class Method Summary collapse
Class Method Details
.parse(filename) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/ebooks_renamer/mobi_parser.rb', line 4 def parse(filename) = Mobi.(File.open(filename)) OpenStruct.new title: .title, author: ., publisher: .publisher end |