class ReVIEW::Book::ImageIndex::Item

Attributes

caption[R]
id[R]
index[W]
number[R]

Public Class Methods

new(id, number, caption = nil) click to toggle source
# File lib/review/book/index.rb, line 165
def initialize(id, number, caption = nil)
  @id = id
  @number = number
  @caption = caption
  @path = nil
end

Public Instance Methods

bound?() click to toggle source
# File lib/review/book/index.rb, line 177
def bound?
  path
end
path() click to toggle source
# File lib/review/book/index.rb, line 181
def path
  @path ||= @index.find_path(id)
end