class RuboCop::Cop::Style::FileWrite

def heredoc?(write_node)

def heredoc?(write_node)
  write_node.block_type? && (first_argument = write_node.body.first_argument) &&
    first_argument.respond_to?(:heredoc?) && first_argument.heredoc?
end