class ReVIEW::Book::ImageIndex
Attributes
image_finder[R]
Public Class Methods
item_type()
click to toggle source
# File lib/review/book/index.rb, line 132 def self.item_type '(image|graph|imgtable)' end
new(chapter)
click to toggle source
Calls superclass method
ReVIEW::Book::Index::new
# File lib/review/book/index.rb, line 138 def initialize(chapter) super() @chapter = chapter book = @chapter.book chapid = chapter.id basedir = book.imagedir builder = book.config['builder'] types = book.image_types @image_finder = ReVIEW::Book::ImageFinder.new(basedir, chapid, builder, types) end
Public Instance Methods
find_path(id)
click to toggle source
# File lib/review/book/index.rb, line 151 def find_path(id) @image_finder.find_path(id) end