class Tapioca::RBIFormatter

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