Class: ReVIEW::Book::ImageIndex::Item
- Defined in:
- lib/review/book/index.rb
Direct Known Subclasses
ReVIEW::Book::IndepImageIndex::Item, NumberlessImageIndex::Item
Instance Attribute Summary collapse
-
#caption ⇒ Object
readonly
Returns the value of attribute caption.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#index ⇒ Object
writeonly
internal use only.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
- #bound? ⇒ Boolean
-
#initialize(id, number, caption = nil) ⇒ Item
constructor
A new instance of Item.
- #path ⇒ Object
Constructor Details
#initialize(id, number, caption = nil) ⇒ Item
Returns a new instance of Item.
164 165 166 167 168 169 |
# File 'lib/review/book/index.rb', line 164 def initialize(id, number, caption = nil) @id = id @number = number @caption = caption @path = nil end |
Instance Attribute Details
#caption ⇒ Object (readonly)
Returns the value of attribute caption.
173 174 175 |
# File 'lib/review/book/index.rb', line 173 def caption @caption end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
171 172 173 |
# File 'lib/review/book/index.rb', line 171 def id @id end |
#index=(value) ⇒ Object (writeonly)
internal use only
174 175 176 |
# File 'lib/review/book/index.rb', line 174 def index=(value) @index = value end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
172 173 174 |
# File 'lib/review/book/index.rb', line 172 def number @number end |
Instance Method Details
#bound? ⇒ Boolean
176 177 178 |
# File 'lib/review/book/index.rb', line 176 def bound? path end |
#path ⇒ Object
180 181 182 |
# File 'lib/review/book/index.rb', line 180 def path @path ||= @index.find_path(id) end |