You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: checkbox.rb
    path of file: ./repos/comfortable-mexican-sofa/lib/comfortable_mexican_sofa/content/tags
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Tag for boolean content that is going to be rendered using checkbox
#   {{ cms:checkbox identifier }}
#
class ComfortableMexicanSofa::Content::Tag::Checkbox < ComfortableMexicanSofa::Content::Tag::Fragmen
    
  def form_field(object_name, view, index)
    name = "#{object_name}[fragments_attributes][#{index}][boolean]"

    input = view.content_tag(:div, class: "form-check mt-2") do
      view.concat view.hidden_field_tag(name, "0", id: nil)

      options = { id: form_field_id, class: "form-check-input position-static" }
      view.concat view.check_box_tag(name, "1", content.present?, options)
    end

    yield input
  end