add all? and any? as Ruby snippets