vendor/bundle/ruby/2.6.0/gems/rubocop-ast-1.18.0/lib/rubocop/ast/node/if_node.rb
def inverse_keyword
        case keyword
        when 'if' then 'unless'
        when 'unless' then 'if'
        else
          ''
        end
      end
# Returns the inverse keyword of the `if` node as a string. Returns `if`
# for `unless` nodes and vice versa. Returns an empty string for ternary
# operators.
#
# @return [String] the inverse keyword of the `if` statement
Returns the inverse keyword of the `if` node as a string. Returns `if`
for `unless` nodes and vice versa. Returns an empty string for ternary
operators.
Returns the inverse keyword of the ` if ` node as a string . Returns ` if ` for ` unless ` nodes and vice versa . Returns an empty string for ternary operators .
def inverse_keyword
        case keyword
        when 'if' then 'unless'
        when 'unless' then 'if'
        else
          ''
        end
      end
def inverse_keyword case keyword when 'if' then 'unless' when 'unless' then 'if' else '' end end
Returns the inverse keyword of the `if` node as a string.
Returns the inverse keyword of the ` if ` node as a string .
the inverse keyword of the `if` statement
the inverse keyword of the ` if ` statement
String