Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 491 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 491 Bytes

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.