available_values()
click to toggle source
def available_values
Checker.available_priorities
end
default()
click to toggle source
def default
@@default || :normal
end
default=(default)
click to toggle source
def default=(default)
@@default = default
end
disable()
click to toggle source
def disable
@@enabled = false
end
enable()
click to toggle source
def enable
require "fileutils"
require "tmpdir"
@@enabled = true
end
enabled?()
click to toggle source
def enabled?
@@enabled
end
included(base)
click to toggle source
def included(base)
base.extend(ClassMethods)
base.class_eval do
setup :priority_setup, :before => :prepend
teardown :priority_teardown, :after => :append
end
end