Ruby 2.5.0 was recentlyreleased. Ruby has sequence predicates such as all?, none?, one? and any? whichtake a block and evaluate that by passing every element of the sequence to it. if queries.any? { |sql| /LEFT OUTER JOIN/i =~ sql }logger.log "Left outer join detected"endRuby 2.5 allows using a shorthand for this bypassing a pattern argument.Internally case equality operator(===) is used against e
