Sha256: 19e73cf09444e94305fa974552a773a214a2d389330a49806ef11aee56cfa2ca

Contents?: true

Size: 267 Bytes

Versions: 2

Compression:

Stored size: 267 Bytes

Contents

require "observer"

class MessageQueue::Adapters::Memory::Connection::Producer < MessageQueue::Producer
  include Observable

  def publish(object, options = {})
    changed
    notify_observers(dump_object(object), default_options.merge(options))
    true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
message_queue-0.1.1 lib/message_queue/adapters/memory/producer.rb
message_queue-0.1.0 lib/message_queue/adapters/memory/producer.rb