simple-notifier - simple type-based notification

gem install simple-notifier

simple-notifier offers a simple type-based notification facility modeled much after ActionMailer. You can create Notifier implementations that offer a method for each type of object/class that you would like to notify on via the ‘notify!’ method.

For instance:

class FooNotifier < Notifier::Base

      def bar(somebar, opts={})
          puts "I just got Foo'd"
      end

end

class Bar
end

FooNotifier.notify!(Bar.new)

I just got Foo'd
=> nil

Examples

You can find more examples in the /example directory along with corresponding unit tests in /test.

Contributing to simple-notifier

Copyright © 2011 Alex Agranov. See LICENSE.txt for further details.