Class: JekyllTestPlugin::TestPage

Inherits:
Jekyll::Page
  • Object
show all
Defined in:
lib/jekyll_test_plugin.rb

Instance Method Summary collapse

Constructor Details

#initialize(site, base, dir, name) ⇒ TestPage

Returns a new instance of TestPage.


6
7
8
9
10
11
12
13
14
# File 'lib/jekyll_test_plugin.rb', line 6

def initialize(site, base, dir, name)
  @site = site
  @base = base
  @dir  = dir
  @name = name
  self.process(name)
  self.content = "this is a test"
  self.data = {}
end