class Tapioca::RBIFormatter

def write_empty_body_comment!(file)

def write_empty_body_comment!(file)
  file.comments << RBI::BlankLine.new unless file.comments.empty?
  file.comments << RBI::Comment.new("THIS IS AN EMPTY RBI FILE.")
  file.comments << RBI::Comment.new("see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem")
end

def write_header!(file, command, reason: nil)

def write_header!(file, command, reason: nil)
  file.comments << RBI::Comment.new("DO NOT EDIT MANUALLY")
  file.comments << RBI::Comment.new("This is an autogenerated file for #{reason}.") unless reason.nil?
  file.comments << RBI::Comment.new("Please instead update this file by running `#{command}`.")
  # Prevent the header from being attached to the top-level node when generating YARD docs
  file.comments << RBI::BlankLine.new
end