Class: Jekyll::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/octopress-hooks.rb

Overview

Monkey patch Jekyll’s Page class

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Page

Returns a new instance of Page.



163
164
165
166
# File 'lib/octopress-hooks.rb', line 163

def initialize(*args)
  old_initialize(*args)
  post_init if respond_to?(:post_init) && self.hooks
end

Instance Method Details

#hooksObject



168
169
170
# File 'lib/octopress-hooks.rb', line 168

def hooks
  self.site.page_hooks
end

#old_initializeObject



161
# File 'lib/octopress-hooks.rb', line 161

alias_method :old_initialize, :initialize