def format_cell_value_as_ask(value)
      return nil if !@options or @options.empty? or !@options.has_key?(:as)
      return case @options[:as]
        when :date then ::I18n.l(value.to_date, :format => @options[:format] || TableBuilder.i18n_default_format_date)
        when :time then ::I18n.l(value.to_datetime, :format => @options[:format] || TableBuilder.i18n_default_format_date)
        when :currency then number_to_currency(value)
        else nil
      end
    end
def format_cell_value_as_ask(value)
      return nil if !@options or @options.empty? or !@options.has_key?(:as)
      return case @options[:as]
        when :date then ::I18n.l(value.to_date, :format => @options[:format] || TableBuilder.i18n_default_format_date)
        when :time then ::I18n.l(value.to_datetime, :format => @options[:format] || TableBuilder.i18n_default_format_date)
        when :currency then number_to_currency(value)
        else nil
      end
    end
Format the value if option :as is set