def register(name, priority: LOW_PRIORITY, &block)
      hooks[name].push(ViewHook.new(priority, block))
      hooks[name].sort_by!(&:priority)
    end
def register(name, priority: LOW_PRIORITY, &block)
      hooks[name].push(ViewHook.new(priority, block))
      hooks[name].sort_by!(&:priority)
    end
Initializes the class.

 hooks - a Hash to store the different view hooks. By default, it's a Hash with
   Arrays as default values.
 Public: Register a view partial for a given view hook. It automatically sorts the
 partials for a given hook name by priority.

 name - a symbol representing the name of the view hook
 priority - a Number (Integer|Float) to sort the block.
 &block - The block that will be rendered in the view hook.

 Returns nothing.