class RuboCop::Cop::Layout::EmptyComment

def empty_comment_only?(comment_text)

def empty_comment_only?(comment_text)
  empty_comment_pattern = if allow_border_comment?
                            /\A(#\n)+\z/
                          else
                            /\A(#+\n)+\z/
                          end
  !(comment_text =~ empty_comment_pattern).nil?
end