class RuboCop::AST::IfNode

def keyword

Returns:
  • (String) - the keyword of the `if` statement
def keyword
  ternary? ? '' : loc.keyword.source
end