class EpubForge::Actions::HooksInterface

Public Class Methods

included( base ) click to toggle source
# File lib/epubforge/action/hooks_interface.rb, line 14
def self.included( base )
  if base == Action
    base.add_hook(:before) do
      @project = @options[:project]
    end
  end
end

Public Instance Methods

add_hook( hookset, block ) click to toggle source
# File lib/epubforge/action/hooks_interface.rb, line 5
def add_hook( hookset, block )  # Symbol: either :before or :after
  
end
run_hooks( hookset ) click to toggle source
Calls superclass method
# File lib/epubforge/action/hooks_interface.rb, line 9
def run_hooks( hookset )
  super( hookset ) unless self == Action
  
end