class RuboCop::Cop::Layout::RedundantLineBreak
def suitable_as_single_line?(node)
def suitable_as_single_line?(node) !comment_within?(node) && node.each_descendant(:if, :case, :kwbegin, :def).none? && node.each_descendant(:dstr, :str).none?(&:heredoc?) && node.each_descendant(:begin).none? { |b| b.first_line != b.last_line } end