mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
- next entry/exit reader after finishing an entry
This commit is contained in:
@@ -106,6 +106,11 @@ class Title
|
||||
end
|
||||
read_pages / total_pages
|
||||
end
|
||||
def next_entry(current_entry_obj)
|
||||
idx = @entries.index current_entry_obj
|
||||
return nil if idx.nil? || idx == @entries.size - 1
|
||||
@entries[idx + 1]
|
||||
end
|
||||
end
|
||||
|
||||
class TitleInfo
|
||||
|
||||
Reference in New Issue
Block a user