Add the support for priority in module.rb

Signed-off-by: Connor Yan <126ium@gmail.com>