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.
77 78 79 80 |
# File 'lib/jekyll/geolexica/glossary.rb', line 77 def initialize(data) @data = data @pages = LiquidCompatibleHash.new end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
72 73 74 |
# File 'lib/jekyll/geolexica/glossary.rb', line 72 def data @data end |
#pages ⇒ Object (readonly)
TODO: Maybe some kind of Struct instead of Hash.
75 76 77 |
# File 'lib/jekyll/geolexica/glossary.rb', line 75 def pages @pages end |
Instance Method Details
#termid ⇒ Object
82 83 84 |
# File 'lib/jekyll/geolexica/glossary.rb', line 82 def termid data['termid'] end |