Class: Klipbook::Sources::KindleDevice::FileParser
- Inherits:
-
Object
- Object
- Klipbook::Sources::KindleDevice::FileParser
- Defined in:
- lib/klipbook/sources/kindle_device/file_parser.rb
Instance Method Summary collapse
- #extract_entries(file_text) ⇒ Object
-
#initialize(entry_parser = EntryParser.new) ⇒ FileParser
constructor
A new instance of FileParser.
Constructor Details
#initialize(entry_parser = EntryParser.new) ⇒ FileParser
Returns a new instance of FileParser.
7 8 9 |
# File 'lib/klipbook/sources/kindle_device/file_parser.rb', line 7 def initialize(entry_parser=EntryParser.new) @entry_parser = entry_parser end |
Instance Method Details
#extract_entries(file_text) ⇒ Object
11 12 13 14 15 |
# File 'lib/klipbook/sources/kindle_device/file_parser.rb', line 11 def extract_entries(file_text) entries_text = split_into_raw_entries_text(file_text) build_entries(entries_text) end |