Method: Moft::Plugin.priority
- Defined in:
- lib/moft/plugin.rb
.priority(priority = nil) ⇒ Object
Get or set the priority of this plugin. When called without an argument it returns the priority. When an argument is given, it will set the priority.
priority - The Symbol priority (default: nil). Valid options are:
:lowest, :low, :normal, :high, :highest
Returns the Symbol priority.
35 36 37 38 39 40 41 |
# File 'lib/moft/plugin.rb', line 35 def self.priority(priority = nil) @priority ||= nil if priority && PRIORITIES.has_key?(priority) @priority = priority end @priority || :normal end |