ruby predicate method. #ruby