Class: Jekyll::PDF

Inherits:
StaticFile
  • Object
show all
Defined in:
lib/jekyll-pdf_generator/hook.rb

Instance Method Summary collapse

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