Skip to content

Commit

Permalink
pass an array of args then splat them when doing final method invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Leech committed Oct 6, 2014
1 parent 55a0765 commit e89eb50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wisper/celluloid_broadcaster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Wisper
class CelluloidBroadcaster
def broadcast(subscriber, publisher, event, args)
Wrapper.new(subscriber).async.broadcast(event, *args)
Wrapper.new(subscriber).async.broadcast(event, args)
end

class Wrapper
Expand All @@ -13,7 +13,7 @@ def initialize(subscriber)
@subscriber = subscriber
end

def broadcast(event, *args)
def broadcast(event, args)
@subscriber.public_send(event, *args)
terminate
end
Expand Down

0 comments on commit e89eb50

Please sign in to comment.