Class: JekyllOpenSdgPlugins::IndicatorPage
- Inherits:
-
Jekyll::Page
- Object
- Jekyll::Page
- JekyllOpenSdgPlugins::IndicatorPage
- Defined in:
- lib/jekyll-open-sdg-plugins/create_indicators.rb
Overview
A Page subclass used in the ‘CreateIndicators` class for the indicators.
Instance Method Summary collapse
-
#initialize(site, base, dir, inid, language, layout) ⇒ IndicatorPage
constructor
A new instance of IndicatorPage.
Constructor Details
#initialize(site, base, dir, inid, language, layout) ⇒ IndicatorPage
Returns a new instance of IndicatorPage.
146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/jekyll-open-sdg-plugins/create_indicators.rb', line 146 def initialize(site, base, dir, inid, language, layout) @site = site @base = base @dir = dir @name = 'index.html' self.process(@name) self.data = {} self.data['indicator_number'] = inid.gsub('-', '.') self.data['layout'] = layout self.data['language'] = language end |