Class: Glynn::Jekyll
- Inherits:
-
Object
- Object
- Glynn::Jekyll
- Defined in:
- lib/glynn/jekyll.rb
Instance Attribute Summary collapse
-
#site ⇒ Object
readonly
Returns the value of attribute site.
Instance Method Summary collapse
-
#build ⇒ Object
Builds the website in the ./_site directory.
-
#initialize(options = {}) ⇒ Jekyll
constructor
A new instance of Jekyll.
Constructor Details
#initialize(options = {}) ⇒ Jekyll
Returns a new instance of Jekyll.
7 8 9 |
# File 'lib/glynn/jekyll.rb', line 7 def initialize( = {}) @site = ::Jekyll::Site.new(::Jekyll.configuration()) end |
Instance Attribute Details
#site ⇒ Object (readonly)
Returns the value of attribute site.
5 6 7 |
# File 'lib/glynn/jekyll.rb', line 5 def site @site end |
Instance Method Details
#build ⇒ Object
Builds the website in the ./_site directory.
14 15 16 |
# File 'lib/glynn/jekyll.rb', line 14 def build site.process end |