Using Set is probably the most convenient way to check for membership in a list since values are stored like in a Hash. Set uses the === method to check membership, which allows: case 'apple' when Set['bean', 'cauliflower', 'carrot'] "vegetable" wh...
langage-ruby.hashnode.dev1 min readNo responses yet.