Triton

Description

Triton is an implementation of the event/listener pattern like EventEmitter on Node.js.

Installation

gem install triton

Example

require 'triton'
Triton::Messenger.on(:alert) { puts "alert!" }
Triton::Messenger.emit(:alert)
    # -> alert!

License

Released under the MIT License. See the LICENSE file for further details.