I'd still prefer the simpler regexp suggested by Juri, as it's more intention revealing, but I can live with using ruby-indent-beg-re as well.

On Fri, Jul 8, 2022, at 4:12 AM, Dmitry Gutov wrote:
On 06.07.2022 11:06, Juri Linkov wrote:
> But now I noticed that actually if/unless/case/... in
> ruby-indent-beg-re has no effect on outlines, because
> they are on a separate regexp group.  So using it for
> outline-regexp would be fine.  Then I only suggest
> to add outline-level as well.
< /div>

If the result looks good to you, please go ahead.