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: loc_search.rb
    path of file: ./repos/enju_leaf/app/models
    
    the code of the file until where you have to start completion: class LocSearch
  def initialize(node)
    @node = node
  end

  class ModsRecord < LocSearch
    MODS_NS = { "mods" => "http://www.loc.gov/mods/v3" }
    def title
      title = @node.xpath('.//mods:titleInfo/mods:title', MODS_NS).first.content
      subtitle = @node.xpath('.//mods:titleInfo/mods:subTitle', MODS_NS).first
      title += " : #{subtitle.content}" if subtitle
      title
    end

    def lccn
      @node.xpath('.//mods:mods/mods:identifier[@type="lccn"]', MODS_NS
    
    def creator
      statement_of_responsibility = @node.at('.//mods:note[@type="statement of responsibility"]', MODS_NS).try(:content)
      if statement_of_responsibility
        statement_of_responsibility
      else
        names = @node.xpath('.//mods:name', MODS_NS)
        creator = names.map do |name|
          name.xpath('.//mods:namePart', MODS_NS).map do |part|
            if part.content
              part.content
            else
              nil
            end
          end.compact.join(", ")
        end.join(" ; ")
        creator
      end
    end