Class: PuzzlyApiPlugin::JSONPage
- Inherits:
-
Jekyll::Page
- Object
- Jekyll::Page
- PuzzlyApiPlugin::JSONPage
- Defined in:
- lib/puzzly_api_plugin/page.rb
Instance Method Summary collapse
-
#initialize(site, base, dir, name, content) ⇒ JSONPage
constructor
A new instance of JSONPage.
- #render_with_liquid? ⇒ Boolean
Constructor Details
#initialize(site, base, dir, name, content) ⇒ JSONPage
Returns a new instance of JSONPage.
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/puzzly_api_plugin/page.rb', line 4 def initialize(site, base, dir, name, content) @site = site @base = base @dir = dir @name = name self.data = {} self.content = content process(@name) end |
Instance Method Details
#render_with_liquid? ⇒ Boolean
16 17 18 |
# File 'lib/puzzly_api_plugin/page.rb', line 16 def render_with_liquid? false end |