Wow, I didn't even know there is a way how to write `do...while` blocks in Ruby :) However, what about:

```ruby
name = param.groups.find { |group| group.include?('parameters') }
name ||= 'Basic'
```