Method: Jekyll::Hooks.register
- Defined in:
- lib/jekyll/hooks.rb
permalink .register(owners, event, priority: DEFAULT_PRIORITY, &block) ⇒ Object
register hook(s) to be called later, public API
57 58 59 60 61 |
# File 'lib/jekyll/hooks.rb', line 57 def self.register(owners, event, priority: DEFAULT_PRIORITY, &block) Array(owners).each do |owner| register_one(owner, event, priority_value(priority), &block) end end |