Class: Metanorma::Html::Drops::BiblioEntryDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Metanorma::Html::Drops::BiblioEntryDrop
- Defined in:
- lib/metanorma/html/drops/biblio_entry_drop.rb
Instance Method Summary collapse
- #content_html ⇒ Object
- #css_class ⇒ Object
- #has_ordinal ⇒ Object
- #has_url ⇒ Object
- #id ⇒ Object
-
#initialize(attrs) ⇒ BiblioEntryDrop
constructor
A new instance of BiblioEntryDrop.
- #ordinal_html ⇒ Object
- #pubid_html ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(attrs) ⇒ BiblioEntryDrop
Returns a new instance of BiblioEntryDrop.
7 8 9 10 11 12 13 14 |
# File 'lib/metanorma/html/drops/biblio_entry_drop.rb', line 7 def initialize(attrs) @id = attrs[:id] @css_class = attrs[:css_class] @ordinal_html = attrs[:ordinal_html] @pubid_html = attrs[:pubid_html] @url = attrs[:url] @content_html = attrs[:content_html] end |
Instance Method Details
#content_html ⇒ Object
36 37 38 |
# File 'lib/metanorma/html/drops/biblio_entry_drop.rb', line 36 def content_html @content_html end |
#css_class ⇒ Object
20 21 22 |
# File 'lib/metanorma/html/drops/biblio_entry_drop.rb', line 20 def css_class @css_class end |
#has_ordinal ⇒ Object
40 41 42 |
# File 'lib/metanorma/html/drops/biblio_entry_drop.rb', line 40 def has_ordinal !@ordinal_html.nil? && !@ordinal_html.empty? end |
#has_url ⇒ Object
44 45 46 |
# File 'lib/metanorma/html/drops/biblio_entry_drop.rb', line 44 def has_url !@url.nil? && !@url.empty? end |
#id ⇒ Object
16 17 18 |
# File 'lib/metanorma/html/drops/biblio_entry_drop.rb', line 16 def id @id end |
#ordinal_html ⇒ Object
24 25 26 |
# File 'lib/metanorma/html/drops/biblio_entry_drop.rb', line 24 def ordinal_html @ordinal_html end |
#pubid_html ⇒ Object
28 29 30 |
# File 'lib/metanorma/html/drops/biblio_entry_drop.rb', line 28 def pubid_html @pubid_html end |
#url ⇒ Object
32 33 34 |
# File 'lib/metanorma/html/drops/biblio_entry_drop.rb', line 32 def url @url end |