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.



78
79
80
81
# File 'lib/jekyll/geolexica/glossary.rb', line 78

def initialize(data)
  @data = data
  @pages = LiquidCompatibleHash.new
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



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

def data
  @data
end

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

#termidObject



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

def termid
  data["termid"]
end