lib/announcer/publishers/publisher.rb
###
# #publish(event)
#
# This method should be overridden by a subclass. Make sure to call "super"
# so that proper sanity checks can be performed.
###
publish(event)
This method should be overridden by a subclass. Make sure to call "super"
so that proper sanity checks can be performed.
publish ( event ) This method should be overridden by a subclass . Make sure to call " super " so that proper sanity checks can be performed .
def publish(event)
        unless event.instance == instance
          raise Errors::PublisherError, "Event for different instance"
        end
      end
def publish ( event ) unless event . instance == instance raise Errors :: PublisherError , "Event for different instance" end end
publish(event)
This method should be overridden by a subclass.
publish ( event ) This method should be overridden by a subclass .
event
<not_specific>