module RuboCop::AST::ConditionalNode

def single_line_condition?

Returns:
  • (Boolean) - whether the condition is on a single line
def single_line_condition?
  loc.keyword.line == condition.source_range.line
end