class Redoxed::Hook

Hook abstract base class

Attributes

cfg[R]

Public Class Methods

new() click to toggle source
# File lib/redoxed/hook.rb, line 72
def initialize; end

Public Instance Methods

cfg=(cfg) click to toggle source
# File lib/redoxed/hook.rb, line 74
def cfg=(cfg)
  @cfg = cfg
  validate_cfg! if respond_to? :validate_cfg!
end
log(msg, level = :info) click to toggle source
# File lib/redoxed/hook.rb, line 83
def log(msg, level = :info)
  Redoxed.logger.send(level, "#{self.class.name}: #{msg}")
end
run_hook(_ctx) click to toggle source
# File lib/redoxed/hook.rb, line 79
def run_hook(_ctx)
  raise NotImplementedError
end