Querying
Эти методы возвращают информацию об объекте Enumerable, помимо самих элементов:
member?(aliased asinclude?): Returnstrueifself == object,falseotherwise.all?: Returnstrueif all elements meet a specified criterion;falseotherwise.any?: Returnstrueif any element meets a specified criterion;falseotherwise.none?: Returnstrueif no element meets a specified criterion;falseotherwise.one?: Returnstrueif exactly one element meets a specified criterion;falseotherwise.count: Returns the count of elements, based on an argument or block criterion, if given.tally: Returns a newHashcontaining the counts of occurrences of each element.