Class: Jekyll::PDF
- Inherits:
-
StaticFile
- Object
- StaticFile
- Jekyll::PDF
- Defined in:
- lib/jekyll-pdf_generator/hook.rb
Instance Method Summary collapse
-
#initialize(site, base, dir, name) ⇒ PDF
constructor
A new instance of PDF.
- #trigger_hooks(hook_name, *args) ⇒ Object
- #write(dest) ⇒ Object
Constructor Details
#initialize(site, base, dir, name) ⇒ PDF
Returns a new instance of PDF.
5 6 7 |
# File 'lib/jekyll-pdf_generator/hook.rb', line 5 def initialize(site, base, dir, name) super end |
Instance Method Details
#trigger_hooks(hook_name, *args) ⇒ Object
14 15 16 |
# File 'lib/jekyll-pdf_generator/hook.rb', line 14 def trigger_hooks(hook_name, *args) Jekyll::Hooks.trigger :pdfs, hook_name, self, *args end |
#write(dest) ⇒ Object
9 10 11 12 |
# File 'lib/jekyll-pdf_generator/hook.rb', line 9 def write(dest) super trigger_hooks(:post_write) end |