Class: Jekyll::Geolexica::Glossary::Concept
- Inherits:
-
Object
- Object
- Jekyll::Geolexica::Glossary::Concept
- Defined in:
- lib/jekyll/geolexica/glossary.rb
Defined Under Namespace
Classes: LiquidCompatibleHash
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#pages ⇒ Object
readonly
TODO: Maybe some kind of Struct instead of Hash.
Instance Method Summary collapse
-
#initialize(data) ⇒ Concept
constructor
A new instance of Concept.
- #termid ⇒ Object
Constructor Details
#initialize(data) ⇒ Concept
Returns a new instance of Concept.
78 79 80 81 |
# File 'lib/jekyll/geolexica/glossary.rb', line 78 def initialize(data) @data = data @pages = LiquidCompatibleHash.new end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
73 74 75 |
# File 'lib/jekyll/geolexica/glossary.rb', line 73 def data @data end |
#pages ⇒ Object (readonly)
TODO: Maybe some kind of Struct instead of Hash.
76 77 78 |
# File 'lib/jekyll/geolexica/glossary.rb', line 76 def pages @pages end |
Instance Method Details
#termid ⇒ Object
83 84 85 |
# File 'lib/jekyll/geolexica/glossary.rb', line 83 def termid data["termid"] end |