class RuboCop::AST::IfNode

def unless?

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