Class: Jekyll::Geolexica::Glossary::Concept

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll/geolexica/glossary.rb

Defined Under Namespace

Classes: LiquidCompatibleHash

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



72
73
74
# File 'lib/jekyll/geolexica/glossary.rb', line 72

def data
  @data
end

#pagesObject (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

#termidObject



82
83
84
# File 'lib/jekyll/geolexica/glossary.rb', line 82

def termid
  data['termid']
end