lib/bmg/operator/rxmatch.rb in bmg-0.18.2 vs lib/bmg/operator/rxmatch.rb in bmg-0.18.3
- old
+ new
@@ -30,9 +30,10 @@
end
public
def each
+ return to_enum unless block_given?
@operand.each do |tuple|
against = attrs.map{|a| tuple[a] }.join(" ")
matcher = self.matcher
unless case_sensitive?
against = against.downcase