Method: Eye::Notify.get_class
- Defined in:
- lib/eye/notify.rb
.get_class(type) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/eye/notify.rb', line 14 def self.get_class(type) klass = eval("Eye::Notify::#{TYPES[type]}") rescue nil raise "unknown notifier :#{type}" unless klass if deps = klass.requires Array(deps).each { |d| require d } end klass end |