Method: Tb::Zipper#aggregate

Defined in:
lib/tb/zipper.rb

#aggregate(ary) ⇒ Object



52
53
54
55
56
57
58
59
# File 'lib/tb/zipper.rb', line 52

def aggregate(ary)
  if ary.length != @ops.length
    raise ArgumentError, "expect an array which lengths are #{@ops.length}"
  end
  @ops.map.with_index {|op, i|
    op.aggregate(ary[i])
  }
end