Class: Fyodor::EntryParser
- Inherits:
-
Object
- Object
- Fyodor::EntryParser
- Defined in:
- lib/fyodor/entry_parser.rb
Instance Method Summary collapse
- #entry ⇒ Object
-
#initialize(entry_lines, parser_config) ⇒ EntryParser
constructor
A new instance of EntryParser.
Constructor Details
#initialize(entry_lines, parser_config) ⇒ EntryParser
Returns a new instance of EntryParser.
5 6 7 8 9 |
# File 'lib/fyodor/entry_parser.rb', line 5 def initialize(entry_lines, parser_config) @lines = entry_lines @config = parser_config format_check end |
Instance Method Details
#entry ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fyodor/entry_parser.rb', line 11 def entry Entry.new({ book_title: book[:title], book_author: book[:author], text: text, desc: desc, type: type, loc: loc, loc_start: loc_start, page: page, page_start: page_start, time: time }) end |