Method: Jekyll::Hooks.priority_value

Defined in:
lib/jekyll/hooks.rb

.priority_value(priority) ⇒ Object

Ensure the priority is a Fixnum



64
65
66
67
68
# File 'lib/jekyll/hooks.rb', line 64

def self.priority_value(priority)
  return priority if priority.is_a?(Integer)

  PRIORITY_MAP[priority] || DEFAULT_PRIORITY
end