From 20e3f2827370354055a866d9d2d8d6a6d94a6d51 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Thu, 21 Sep 2017 22:27:13 +0200 Subject: [PATCH] Return the given value on Flows#[]= --- lib/rackstash/flows.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rackstash/flows.rb b/lib/rackstash/flows.rb index d46fd26..cf00733 100644 --- a/lib/rackstash/flows.rb +++ b/lib/rackstash/flows.rb @@ -56,6 +56,7 @@ module Rackstash def []=(index, flow) flow = Flow.new(flow) unless flow.is_a?(Flow) @flows[index] = flow + flow end # Calls the given block once for each flow in `self`, passing that flow as