```ruby
case node.platform_family #notice node.
when "rhel","fedora"
when "debian"
end
```
Works

Otherwise I would use if / elsif

```ruby
if platform_family?("rhel") or platform_family?("fedora")
elsif platform_family("debian")
  if platform?("ubuntu")
   # stuff
  end
end
```