class RuboCop::Cop::Style::MultilineIfModifier

Checks for uses of if/unless modifiers with multiple-lines bodies.

@example

# bad
{
  result: 'this should not happen'
} unless cond

# good
{ result: 'ok' } if cond