Class: Jekyll::Page
- Inherits:
-
Object
- Object
- Jekyll::Page
- Defined in:
- lib/jekyll-page-hooks.rb
Overview
Monkey patch for the Jekyll Page class. For the original class, see: github.com/mojombo/jekyll/blob/master/lib/jekyll/page.rb
Instance Method Summary collapse
-
#old_write ⇒ Object
Copy the #write method to #old_write, so we can redefine #write method.
-
#write(dest) ⇒ Object
Write the generated post file to the destination directory.
Instance Method Details
#old_write ⇒ Object
Copy the #write method to #old_write, so we can redefine #write method.
69 |
# File 'lib/jekyll-page-hooks.rb', line 69 alias_method :old_write, :write |
#write(dest) ⇒ Object
Write the generated post file to the destination directory. It then calls any post_write methods that may exist.
+dest+ is the String path to the destination dir
Returns nothing
76 77 78 79 |
# File 'lib/jekyll-page-hooks.rb', line 76 def write(dest) old_write(dest) post_write if respond_to?(:post_write) end |