In this case, the case-when statement is useful

```ruby
case method_name
when /(list|on|trigger)_([0-9]+)/
  ...
when /(list|on|trigger)_([a-z0-9]+)/
  ...
else
 ...
end
```