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: bootstrap_flash_helper.rb
    path of file: ./repos/tracks/app/helpers
    
    the code of the file until where you have to start completion: module BootstrapFlashHelper
  ALERT_MAPPING = {
    :notice
    
  def bootstrap_flash(options = { :close_button => true })
    flash_messages = []
    flash.each do |type, message|
      # Skip empty messages, e.g. for devise messages set to nothing in a locale file.
      next if message.blank?
      type = type.to_sym
      next unless ALERT_MAPPING.keys.include?(type)

      tag_class = options.extract!(:class)[:class]
      tag_options = {
        class: "alert fade in alert-#{ALERT_MAPPING[type]} #{tag_class}"
      }.merge(options)

      close_button = ""
      if options[:close_button]
        close_button = content_tag(:button, raw("&times;"), type: "button", class: "close", "data-dismiss" => "alert")
      end

      Array(message).each do |msg|
        text = content_tag(:div, close_button + msg, tag_options)
        flash_messages << text if msg
      end
    end