performance/speed_receptacle.rb in receptacle-0.3.1 vs performance/speed_receptacle.rb in receptacle-1.0.0

- old
+ new

@@ -1,7 +1,8 @@ # frozen_string_literal: true -require 'receptacle' + +require "receptacle" module Speed include Receptacle::Repo mediate :a mediate :b mediate :c @@ -27,39 +28,39 @@ class W1 def before_a(args) args end - def after_a(return_values, _) + def after_a(return_values, _args) return_values end def before_f(args) args end - def after_f(return_values, _) + def after_f(return_values, _args) return_values end end class W2 # :a def before_a(args) args end - def after_a(return_values, _) + def after_a(return_values, _args) return_values end # :b def before_b(args) args end - def after_b(return_values, _) + def after_b(return_values, _args) return_values end end class W3 def before_a(args) @@ -70,30 +71,30 @@ args end end class W4 - def after_a(return_values, _) + def after_a(return_values, _args) return_values end - def after_d(return_value, _) + def after_d(return_value, _args) return_value end end class W5 def before_b(args) args end - def after_c(return_value, _) + def after_c(return_value, _args) return_value end end class W6 - def after_b(return_value, _) + def after_b(return_value, _args) return_value end def before_e(args) args