class RuboCop::AST::IfNode

def if?

Returns:
  • (Boolean) - whether the node is an `if` statement
def if?
  keyword == 'if'
end