Class: Jekyll::Geolexica::ConceptPage
- Inherits:
-
PageWithoutAFile
- Object
- PageWithoutAFile
- Jekyll::Geolexica::ConceptPage
- Defined in:
- lib/jekyll/geolexica/concept_page.rb
Defined Under Namespace
Classes: HTML, JSON, JSONLD, TBX, Turtle, YAML
Instance Attribute Summary collapse
-
#concept ⇒ Object
readonly
Returns the value of attribute concept.
Instance Method Summary collapse
-
#initialize(site, concept) ⇒ ConceptPage
constructor
A new instance of ConceptPage.
- #termid ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(site, concept) ⇒ ConceptPage
Returns a new instance of ConceptPage.
9 10 11 12 13 14 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 9 def initialize(site, concept) @concept = concept @data = default_data.merge(concept.data) super(site, site.source, "concepts", page_name) end |
Instance Attribute Details
#concept ⇒ Object (readonly)
Returns the value of attribute concept.
7 8 9 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 7 def concept @concept end |
Instance Method Details
#termid ⇒ Object
16 17 18 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 16 def termid concept.termid end |
#type ⇒ Object
20 21 22 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 20 def type self.collection_name.to_sym end |