Class: Coradoc::Html::Drop::TermDrop
- Inherits:
-
Base
- Object
- Liquid::Drop
- Base
- Coradoc::Html::Drop::TermDrop
show all
- Defined in:
- lib/coradoc/html/drop/term_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
#css_class ⇒ Object
15
16
17
18
|
# File 'lib/coradoc/html/drop/term_drop.rb', line 15
def css_class
t = @model.type || 'term'
"term term-#{t}"
end
|
#term_ref ⇒ Object
11
12
13
|
# File 'lib/coradoc/html/drop/term_drop.rb', line 11
def term_ref
@model.text.to_s
end
|
#text ⇒ Object
7
8
9
|
# File 'lib/coradoc/html/drop/term_drop.rb', line 7
def text
Escape.escape_html(@model.text.to_s)
end
|