class PDFium::BookmarkList
A list of bookmarks for a Document or a Bookmark
Public Class Methods
new(initial)
click to toggle source
Not used directly, but called from Document#bookmarks
# File lib/pdfium/bookmark_list.rb, line 8 def initialize(initial) @first=initial end
Public Instance Methods
each() { |bookmark| ... }
click to toggle source
Calls block once for each bookmark that exists at the current level Since bookmarks form a tree, each bookmark may have one or more children
# File lib/pdfium/bookmark_list.rb, line 14 def each bookmark = @first while bookmark yield bookmark bookmark = bookmark.next_sibling end end
empty?()
click to toggle source
True if no bookmarks exist, false if at least one is present
# File lib/pdfium/bookmark_list.rb, line 23 def empty? @first.nil? end