Class: JekyllNotion::AbstractGenerator
- Inherits:
-
Object
- Object
- JekyllNotion::AbstractGenerator
- Defined in:
- lib/jekyll-notion/generators/abstract_generator.rb
Direct Known Subclasses
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(notion_resource:, site:, plugin:) ⇒ AbstractGenerator
constructor
A new instance of AbstractGenerator.
Constructor Details
#initialize(notion_resource:, site:, plugin:) ⇒ AbstractGenerator
Returns a new instance of AbstractGenerator.
5 6 7 8 9 |
# File 'lib/jekyll-notion/generators/abstract_generator.rb', line 5 def initialize(notion_resource:, site:, plugin:) @notion_resource = notion_resource @site = site @plugin = plugin end |
Instance Method Details
#generate ⇒ Object
11 12 13 |
# File 'lib/jekyll-notion/generators/abstract_generator.rb', line 11 def generate raise "Do not use the AbstractGenerator class. Implement the generate method in a subclass." end |