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: table_helper.rb
    path of file: ./repos/code_fund_ads/app/helpers/frontend
    
    the code of the file until where you have to start completion: module Frontend
  module TableHelper
    def table_wrapper(&block)
      content_tag(:div, nil, class: "table-responsive", &block)
    end

    def table(add_class: nil, &block)
      table_wrapper do
        cont
    
    def sortable_tr(column, title = nil, add_style: nil, add_class: nil)
      title ||= column.titleize
      direction = column == @sorted_by && @sorted_direction == "asc" ? "desc" : "asc"
      selected = nil

      if @sorted_by == column
        selected = if direction == "desc"
          "up"
        else
          "down"
        end