Class: Coradoc::Html::Drop::ImageDrop
- Inherits:
-
Base
- Object
- Liquid::Drop
- Base
- Coradoc::Html::Drop::ImageDrop
show all
- Defined in:
- lib/coradoc/html/drop/image_drop.rb
Instance Attribute Summary
Attributes inherited from Base
#model
Instance Method Summary
collapse
Methods inherited from Base
#id, #initialize, #template_type, #title, #to_liquid
Instance Method Details
#alt ⇒ Object
15
16
17
|
# File 'lib/coradoc/html/drop/image_drop.rb', line 15
def alt
@model.alt
end
|
#caption ⇒ Object
27
28
29
|
# File 'lib/coradoc/html/drop/image_drop.rb', line 27
def caption
optional_text(@model.caption)
end
|
#height ⇒ Object
23
24
25
|
# File 'lib/coradoc/html/drop/image_drop.rb', line 23
def height
@model.height
end
|
#inline? ⇒ Boolean
7
8
9
|
# File 'lib/coradoc/html/drop/image_drop.rb', line 7
def inline?
@model.inline == true
end
|
#src ⇒ Object
11
12
13
|
# File 'lib/coradoc/html/drop/image_drop.rb', line 11
def src
@model.src
end
|
#width ⇒ Object
19
20
21
|
# File 'lib/coradoc/html/drop/image_drop.rb', line 19
def width
@model.width
end
|