Sha256: e7172a5da3c394c9b37ca06d7ee17400a2e25f0004f0941fbefc5f0a3a9cf52f

Contents?: true

Size: 468 Bytes

Versions: 5

Compression:

Stored size: 468 Bytes

Contents

module EventAggregator
	
	# Public: MessageJob is a class used by the EventAggregator::Aggregator
	# for processing message distribution.
	#
	class MessageJob
		
		# Public: Duplicate some text an arbitrary number of times.
		#
		# data - The data that will be sent to the callback, originating 
		# from a message.
		# callback - The callback that will be processed with the data as 
		# a parameter
		def perform(data, callback)
			callback.call(data)
		end
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
event_aggregator-1.1.5 lib/event_aggregator/message_job.rb
event_aggregator-1.1.4 lib/event_aggregator/message_job.rb
event_aggregator-1.1.3 lib/event_aggregator/message_job.rb
event_aggregator-1.1.2 lib/event_aggregator/message_job.rb
event_aggregator-1.1.1 lib/event_aggregator/message_job.rb