module Rusen::Notifiers
Constants
- NOTIFIERS
Public Class Methods
check_deprecation(ident)
click to toggle source
# File lib/rusen/notifiers.rb, line 23 def check_deprecation(ident) if ident == :email warn ':email is a deprecated output type. :pony replaces :email. A new alternative is :mail (mail gem).' return :pony end return ident end
load_klass(ident, klass_sym = nil)
click to toggle source
# File lib/rusen/notifiers.rb, line 13 def load_klass(ident, klass_sym = nil) klass_sym ||= NOTIFIERS[ident] if klass_sym require "rusen/notifiers/#{ident}_notifier" unless Notifiers.constants.include?(klass_sym) Notifiers.const_get(klass_sym) else return nil end end