lib/emittance/dispatchers/synchronous.rb in emittance-0.1.3 vs lib/emittance/dispatchers/synchronous.rb in emittance-1.0.0
- old
+ new
@@ -13,16 +13,16 @@
registrations_for(event).each do |registration|
registration.call event
end
end
- def _register(identifier, &callback)
+ def _register(identifier, _params = {}, &callback)
registrations = registrations_for identifier
registrations << callback
callback
end
- def _register_method_call(identifier, object, method_name)
+ def _register_method_call(identifier, object, method_name, _params = {})
register identifier, &lambda_for_method_call(object, method_name)
end
def lambda_for_method_call(object, method_name)
->(event) { object.send method_name, event }