lib/macros4cuke/formatting-service.rb in macros4cuke-0.5.06 vs lib/macros4cuke/formatting-service.rb in macros4cuke-0.5.07

- old
+ new

@@ -59,10 +59,10 @@ formatters.each do |fmt| accepted_notifications = fmt.implements next unless accepted_notifications.include? msg # Assumption: all nil argument(s) are at the end - arg_vector = visit_event[2..-1].reject { |an_arg| an_arg.nil? } + arg_vector = visit_event[2..-1].reject(&:nil?) fmt.send(msg, nesting_level, *arg_vector) end end end