Sha256: eadb42813f41b0bbfda4d1ab012e783a7824539ff06bfcd183eefac0c87063f6
Contents?: true
Size: 419 Bytes
Versions: 24
Compression:
Stored size: 419 Bytes
Contents
require "cabin/namespace" # This mixin allows you to easily give channel and publish features # to a class. module Cabin::Publisher # Set the channel def channel=(channel) @channel = channel end # def channel= # Get the channel def channel return @channel end # def channel # Publish to the channel def publish(object) @channel << object end # def publish end # module Cabin::Publisher
Version data entries
24 entries across 22 versions & 6 rubygems