lib/bmg/operator/join.rb in bmg-0.18.2 vs lib/bmg/operator/join.rb in bmg-0.18.3
- old
+ new
@@ -23,9 +23,10 @@
attr_reader :on, :options
public
def each
+ return to_enum unless block_given?
index = Hash.new
right.each_with_object(index) do |t, index|
key = tuple_project(t, on)
index[key] ||= []
index[key] << t