You can do similar things, as in linq, one way or another the syntax is different. You should write something like this:
a.select { |i| (do something with item i and decide whether it should be added to the output array or not by returning true or false) }
Assuming a is an array, this code will return a new array containing the elements that passed your validation code.
Array Class Documentation
source share