Object
# File lib/celluloid/notifications.rb, line 63 def initialize(actor, pattern, method) @actor = actor @pattern = pattern @method = method end
# File lib/celluloid/notifications.rb, line 77 def matches?(subscriber_or_pattern) self === subscriber_or_pattern || @pattern && @pattern === subscriber_or_pattern end
# File lib/celluloid/notifications.rb, line 69 def publish(pattern, *args) actor.async method, pattern, *args end
# File lib/celluloid/notifications.rb, line 73 def subscribed_to?(pattern) !pattern || @pattern === pattern.to_s end
[Validate]
Generated with the Darkfish Rdoc Generator 2.