Registry / utility / publisher

publisher

JSON →
library1.1.2rbrubygemsunverified

A module for extending a class with event subscription and firing capabilities, implementing the Observer design pattern.

gem install publisher
INSTALL
IMPORT
SIG · PUBLISHER
P
publisher
utilityrubyv1.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Publisher
require 'publisher'

Define and fire events

require 'publisher' class MyClass extend Publisher can_fire :something_happened end obj = MyClass.new obj.when(:something_happened) { puts 'Event fired!' } obj.fire(:something_happened)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
publisher — gem install publisher · libregistry