mirror of
https://github.com/meineerde/rackstash.git
synced 2025-10-17 14:01:01 +00:00
Return the given value on Flows#[]=
This commit is contained in:
parent
14479e97dd
commit
20e3f28273
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user